From: Vasundhara Volam Date: Tue, 6 Aug 2013 03:57:20 +0000 (+0530) Subject: be2net: Initialize "status" in be_cmd_get_die_temperature() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=117affe3adb5dc26e7cc2af891934b7123ef40fa;p=openwrt%2Fstaging%2Fblogic.git be2net: Initialize "status" in be_cmd_get_die_temperature() Uninitialized value was being returned in the non-failure case. Signed-off-by: Vasundhara Volam Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index e49e8cdffbe0..5175f9729970 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c @@ -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);