be2net: Initialize "status" in be_cmd_get_die_temperature()
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 6 Aug 2013 03:57:20 +0000 (09:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 17:39:09 +0000 (10:39 -0700)
Uninitialized value was being returned in the non-failure case.
Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c

index e49e8cd..5175f97 100644 (file)
@@ -1532,7 +1532,7 @@ int be_cmd_get_die_temperature(struct be_adapter *adapter)
 {
        struct be_mcc_wrb *wrb;
        struct be_cmd_req_get_cntl_addnl_attribs *req;
-       int status;
+       int status = 0;
 
        spin_lock_bh(&adapter->mcc_lock);