@@ -3427,8 +3427,8 @@ static int __devinit
3427
3427
bnx2_request_firmware (struct bnx2 * bp )
3428
3428
{
3429
3429
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 ;
3432
3432
int rc ;
3433
3433
3434
3434
if (CHIP_NUM (bp ) == CHIP_NUM_5709 ) {
@@ -3452,21 +3452,21 @@ bnx2_request_firmware(struct bnx2 *bp)
3452
3452
rv2p_fw_file );
3453
3453
return rc ;
3454
3454
}
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 )) {
3463
3463
printk (KERN_ERR PFX "Firmware file \"%s\" is invalid\n" ,
3464
3464
mips_fw_file );
3465
3465
return - EINVAL ;
3466
3466
}
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)) {
3470
3470
printk (KERN_ERR PFX "Firmware file \"%s\" is invalid\n" ,
3471
3471
rv2p_fw_file );
3472
3472
return - EINVAL ;
0 commit comments