mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 02:34:23 +08:00
sfc: Fix condition for no-op in set_phy_flash_cfg()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f18ca36461
commit
4484cd7ded
@ -325,7 +325,7 @@ static ssize_t set_phy_flash_cfg(struct device *dev,
|
||||
new_mode = old_mode & ~PHY_MODE_SPECIAL;
|
||||
else
|
||||
new_mode = PHY_MODE_SPECIAL;
|
||||
if (old_mode == new_mode) {
|
||||
if (!((old_mode ^ new_mode) & PHY_MODE_SPECIAL)) {
|
||||
err = 0;
|
||||
} else if (efx->state != STATE_RUNNING || netif_running(efx->net_dev)) {
|
||||
err = -EBUSY;
|
||||
|
Loading…
Reference in New Issue
Block a user