From: Adrian Bunk Date: Thu, 7 Dec 2006 23:10:06 +0000 (-0800) Subject: [BNX2]: Add an error check. X-Git-Tag: v2.6.20-rc1~34^2~28^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c1bbcc8836358294c431e0c09e85e3480895659;p=linux-2.6 [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 5bacb7587d..7d824cf8ee 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; }