Skip to content

Commit 5ee1c32

Browse files
Bastian Blankdavem330
authored andcommitted
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 <[email protected]> Tested-by: Martin Michlmayr <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fb922b0 commit 5ee1c32

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

drivers/net/bnx2.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,8 +3427,8 @@ static int __devinit
34273427
bnx2_request_firmware(struct bnx2 *bp)
34283428
{
34293429
const char *mips_fw_file, *rv2p_fw_file;
3430-
const struct bnx2_mips_fw_file *mips;
3431-
const struct bnx2_rv2p_fw_file *rv2p;
3430+
const struct bnx2_mips_fw_file *mips_fw;
3431+
const struct bnx2_rv2p_fw_file *rv2p_fw;
34323432
int rc;
34333433

34343434
if (CHIP_NUM(bp) == CHIP_NUM_5709) {
@@ -3452,21 +3452,21 @@ bnx2_request_firmware(struct bnx2 *bp)
34523452
rv2p_fw_file);
34533453
return rc;
34543454
}
3455-
mips = (const struct bnx2_mips_fw_file *) bp->mips_firmware->data;
3456-
rv2p = (const struct bnx2_rv2p_fw_file *) bp->rv2p_firmware->data;
3457-
if (bp->mips_firmware->size < sizeof(*mips) ||
3458-
check_mips_fw_entry(bp->mips_firmware, &mips->com) ||
3459-
check_mips_fw_entry(bp->mips_firmware, &mips->cp) ||
3460-
check_mips_fw_entry(bp->mips_firmware, &mips->rxp) ||
3461-
check_mips_fw_entry(bp->mips_firmware, &mips->tpat) ||
3462-
check_mips_fw_entry(bp->mips_firmware, &mips->txp)) {
3455+
mips_fw = (const struct bnx2_mips_fw_file *) bp->mips_firmware->data;
3456+
rv2p_fw = (const struct bnx2_rv2p_fw_file *) bp->rv2p_firmware->data;
3457+
if (bp->mips_firmware->size < sizeof(*mips_fw) ||
3458+
check_mips_fw_entry(bp->mips_firmware, &mips_fw->com) ||
3459+
check_mips_fw_entry(bp->mips_firmware, &mips_fw->cp) ||
3460+
check_mips_fw_entry(bp->mips_firmware, &mips_fw->rxp) ||
3461+
check_mips_fw_entry(bp->mips_firmware, &mips_fw->tpat) ||
3462+
check_mips_fw_entry(bp->mips_firmware, &mips_fw->txp)) {
34633463
printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n",
34643464
mips_fw_file);
34653465
return -EINVAL;
34663466
}
3467-
if (bp->rv2p_firmware->size < sizeof(*rv2p) ||
3468-
check_fw_section(bp->rv2p_firmware, &rv2p->proc1.rv2p, 8, true) ||
3469-
check_fw_section(bp->rv2p_firmware, &rv2p->proc2.rv2p, 8, true)) {
3467+
if (bp->rv2p_firmware->size < sizeof(*rv2p_fw) ||
3468+
check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc1.rv2p, 8, true) ||
3469+
check_fw_section(bp->rv2p_firmware, &rv2p_fw->proc2.rv2p, 8, true)) {
34703470
printk(KERN_ERR PFX "Firmware file \"%s\" is invalid\n",
34713471
rv2p_fw_file);
34723472
return -EINVAL;

0 commit comments

Comments
 (0)