diff options
author | Bastian Blank <waldi@debian.org> | 2009-04-08 18:50:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-08 18:50:07 -0400 |
commit | 5ee1c32628e4baa0d99146a8adc594220f947aad (patch) | |
tree | d6fe34e2290903b10aac58962e513f8d58ac0487 /drivers/net/bnx2.c | |
parent | fb922b0de60d64473f68515a90a7df603267d245 (diff) |
bnx2: Don't use reserved names
The mips identifier is reserved by gcc on mips plattforms. Don't use it
in the code.
Signed-off-by: Bastian Blank <waldi@debian.org>
Tested-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 9d268be0b670..d47839184a06 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -3427,8 +3427,8 @@ static int __devinit | |||
3427 | bnx2_request_firmware(struct bnx2 *bp) | 3427 | bnx2_request_firmware(struct bnx2 *bp) |
3428 | { | 3428 | { |
3429 | const char *mips_fw_file, *rv2p_fw_file; | 3429 | const char *mips_fw_file, *rv2p_fw_file; |
3430 | const struct bnx2_mips_fw_file *mips; | 3430 | const struct bnx2_mips_fw_file *mips_fw; |
3431 | const struct bnx2_rv2p_fw_file *rv2p; | 3431 | const struct bnx2_rv2p_fw_file *rv2p_fw; |
3432 | int rc; | 3432 | int rc; |
3433 | 3433 | ||
3434 | if (CHIP_NUM(bp) == CHIP_NUM_5709) { | 3434 | if (CHIP_NUM(bp) == CHIP_NUM_5709) { |
@@ -3452,21 +3452,21 @@ bnx2_request_firmware(struct bnx2 *bp) | |||
3452 | rv2p_fw_file); | 3452 | rv2p_fw_file); |
3453 | return rc; | 3453 | return rc; |
3454 | } | 3454 | } |
3455 | mips = (const struct bnx2_mips_fw_file *) bp->mips_firmware->data; | 3455 | mips_fw = (const struct bnx2_mips_fw_file *) bp->mips_firmware->data; |
3456 | rv2p = (const struct bnx2_rv2p_fw_file *) bp->rv2p_firmware->data; | 3456 | rv2p_fw = (const struct bnx2_rv2p_fw_file *) bp->rv2p_firmware->data; |
3457 | if (bp->mips_firmware->size < sizeof(*mips) || | 3457 | if (bp->mips_firmware->size < sizeof(*mips_fw) || |
3458 | check_mips_fw_entry(bp->mips_firmware, &mips->com) || | 3458 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->com) || |
3459 | check_mips_fw_entry(bp->mips_firmware, &mips->cp) || | 3459 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->cp) || |
3460 | check_mips_fw_entry(bp->mips_firmware, &mips->rxp) || | 3460 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->rxp) || |
3461 | check_mips_fw_entry(bp->mips_firmware, &mips->tpat) || | 3461 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->tpat) || |
3462 | check_mips_fw_entry(bp->mips_firmware, &mips->txp)) { | 3462 | check_mips_fw_entry(bp->mips_firmware, &mips_fw->txp)) { |
3463 | printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", | 3463 | printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", |
3464 | mips_fw_file); | 3464 | mips_fw_file); |
3465 | return -EINVAL; | 3465 | return -EINVAL; |
3466 | } | 3466 | } |
3467 | if (bp->rv2p_firmware->size < sizeof(*rv2p) || | 3467 | if (bp->rv2p_firmware->size < sizeof(*rv2p_fw) || |
3468 | check_fw_section(bp->rv2p_firmware, &rv2p->proc1.rv2p, 8, true) || | 3468 | check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc1.rv2p, 8, true) || |
3469 | check_fw_section(bp->rv2p_firmware, &rv2p->proc2.rv2p, 8, true)) { | 3469 | check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc2.rv2p, 8, true)) { |
3470 | printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", | 3470 | printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n", |
3471 | rv2p_fw_file); | 3471 | rv2p_fw_file); |
3472 | return -EINVAL; | 3472 | return -EINVAL; |