diff options
author | Vasundhara Volam <vasundhara.volam@emulex.com> | 2013-08-06 05:57:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-07 19:39:09 +0200 |
commit | 117affe3adb5dc26e7cc2af891934b7123ef40fa (patch) | |
tree | 9c731bbfba36812309bb47bffea4e4f96957f67f /drivers/net/ethernet/emulex | |
parent | be2net: fixup log msgs for async events (diff) | |
download | linux-117affe3adb5dc26e7cc2af891934b7123ef40fa.tar.xz linux-117affe3adb5dc26e7cc2af891934b7123ef40fa.zip |
be2net: Initialize "status" in be_cmd_get_die_temperature()
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>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |