]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[BNX2]: Add an error check.
authorAdrian Bunk <bunk@stusta.de>
Thu, 7 Dec 2006 23:10:06 +0000 (15:10 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 9 Dec 2006 01:19:22 +0000 (17:19 -0800)
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>
drivers/net/bnx2.c

index 5bacb7587df41b77cdc414b278e85750279f4477..7d824cf8ee2d3e6893b00c70aad0d71a61e4ca3c 100644 (file)
@@ -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;
        }