ixgbe: phy: fix uninitialized status in ixgbe_setup_phy_link_tnx
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 11 Nov 2014 18:22:05 +0000 (10:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Nov 2014 21:31:54 +0000 (16:31 -0500)
commit48eb5b9c3dd2768b6a4de9c1eab606820fd84192
tree31425b06eca1496c7129981057df2f66596d2c52
parent79ce0477ffe82e7e49e55179cd176a1c33382744
ixgbe: phy: fix uninitialized status in ixgbe_setup_phy_link_tnx

Status variable is never initialized, can carry an arbitrary value
on the stack and thus may let the function fail.

Fixes: e90dd2645664 ("ixgbe: Make return values more direct")
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c