]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: file build warning
authorJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 03:47:37 +0000 (11:47 +0800)
committerJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 03:47:37 +0000 (11:47 +0800)
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_ethtool.c

index f0f5b3e1a696c46c40a6cc3428bd3cc92be4aae0..c7c517e580479cd185f087f74bc0ff34b04177e2 100644 (file)
@@ -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;