igc: change default return of igc_read_phy_reg()

backport from 05682a0a61

Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
Jim Ma 2022-10-27 01:58:35 +08:00
parent 0cdce9cd60
commit 0491c6f10f

2
igc.h
View File

@ -534,7 +534,7 @@ static inline s32 igc_read_phy_reg(struct igc_hw *hw, u32 offset, u16 *data)
if (hw->phy.ops.read_reg)
return hw->phy.ops.read_reg(hw, offset, data);
return 0;
return -EOPNOTSUPP;
}
void igc_reinit_locked(struct igc_adapter *);