aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2021-05-21 19:50:19 +0000
committerTony Nguyen <[email protected]>2021-07-01 17:53:22 +0000
commit05682a0a61b6cbecd97a0f37f743b2cbfd516977 (patch)
treeaea5b09df1821b31546d2fe35e689c30489507fa /drivers/net/ethernet/intel/igc/igc_main.c
parentigb: Fix use-after-free error during reset (diff)
downloadkernel-05682a0a61b6cbecd97a0f37f743b2cbfd516977.tar.gz
kernel-05682a0a61b6cbecd97a0f37f743b2cbfd516977.zip
igc: change default return of igc_read_phy_reg()
Static analysis reports this problem igc_main.c:4944:20: warning: The left operand of '&' is a garbage value if (!(phy_data & SR_1000T_REMOTE_RX_STATUS) && ~~~~~~~~ ^ phy_data is set by the call to igc_read_phy_reg() only if there is a read_reg() op, else it is unset and a 0 is returned. Change the return to -EOPNOTSUPP. Fixes: 208983f099d9 ("igc: Add watchdog") Signed-off-by: Tom Rix <[email protected]> Tested-by: Dvora Fuxbrumer <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions