From: Adrian Bunk Date: Thu, 7 Dec 2006 23:10:06 +0000 (-0800) Subject: [BNX2]: Add an error check. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c1bbcc8836358294c431e0c09e85e3480895659;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [BNX2]: Add an error check. This patch adds a missing error check spotted by the Coverity checker. Signed-off-by: Adrian Bunk Acked-by: Jeff Garzik Acked-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 5bacb7587df4..7d824cf8ee2d 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c @@ -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; }