mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 02:04:05 +08:00
[BNX2]: Add an error check.
This patch adds a missing error check spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Jeff Garzik <jgarzik@pobox.com> Acked-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3644f0cee7
commit
6c1bbcc883
@ -2510,7 +2510,7 @@ bnx2_init_cpus(struct bnx2 *bp)
|
||||
if (CHIP_NUM(bp) == CHIP_NUM_5709) {
|
||||
fw = &bnx2_cp_fw_09;
|
||||
|
||||
load_cpu_fw(bp, &cpu_reg, fw);
|
||||
rc = load_cpu_fw(bp, &cpu_reg, fw);
|
||||
if (rc)
|
||||
goto init_cpu_err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user