From: Joe Jin Date: Fri, 18 May 2012 03:47:37 +0000 (+0800) Subject: bnx2x: file build warning X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e41fe03a1d15b2fcc3c623e61a70d391f4b07684;p=users%2Fjedix%2Flinux-maple.git bnx2x: file build warning Signed-off-by: Joe Jin --- diff --git a/drivers/net/bnx2x/bnx2x_ethtool.c b/drivers/net/bnx2x/bnx2x_ethtool.c index f0f5b3e1a696c..c7c517e580479 100644 --- a/drivers/net/bnx2x/bnx2x_ethtool.c +++ b/drivers/net/bnx2x/bnx2x_ethtool.c @@ -931,7 +931,7 @@ static int bnx2x_acquire_nvram_lock(struct bnx2x *bp) { int port = BP_PORT(bp); int count, i; - u32 val; + u32 val = 0; /* acquire HW lock: protect against other PFs in PF Direct Assignment */ bnx2x_acquire_hw_lock(bp, HW_LOCK_RESOURCE_NVRAM); @@ -965,7 +965,7 @@ static int bnx2x_release_nvram_lock(struct bnx2x *bp) { int port = BP_PORT(bp); int count, i; - u32 val; + u32 val = 0; /* adjust timeout for emulation/FPGA */ count = BNX2X_NVRAM_TIMEOUT_COUNT;