ixgbe: return error on unsupported SFP module when resetting
[ Upstream commit bbb2707623
]
Add check for unsupported module and return the error code.
This fixes a Coverity hit due to unused return status from setup_sfp.
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
pull/10/head
parent
33d1c29e93
commit
55e95f9ad7
|
@ -3413,6 +3413,9 @@ static s32 ixgbe_reset_hw_X550em(struct ixgbe_hw *hw)
|
|||
hw->phy.sfp_setup_needed = false;
|
||||
}
|
||||
|
||||
if (status == IXGBE_ERR_SFP_NOT_SUPPORTED)
|
||||
return status;
|
||||
|
||||
/* Reset PHY */
|
||||
if (!hw->phy.reset_disable && hw->phy.ops.reset)
|
||||
hw->phy.ops.reset(hw);
|
||||
|
|
Loading…
Reference in New Issue