diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-09-19 12:40:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-22 21:19:17 +0200 |
commit | 85911d71109d3dda8bb35515b78bcc1de6837785 (patch) | |
tree | 51da750e22fe8b4a115263ea8e56c7ab925a619e /drivers/net/ethernet/realtek/r8169.c | |
parent | r8152: disable ALDPS (diff) | |
download | linux-85911d71109d3dda8bb35515b78bcc1de6837785.tar.xz linux-85911d71109d3dda8bb35515b78bcc1de6837785.zip |
r8169: fix an if condition
There is an extra semi-colon so __rtl8169_set_features() is called every
time.
Fixes: 929a031dfd62 ('r8169: adjust __rtl8169_set_features')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Hayes Wang <hayeswang@realtek.com>--
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index ef2cee5de62b..0921302553c6 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -1818,7 +1818,7 @@ static int rtl8169_set_features(struct net_device *dev, features &= NETIF_F_RXALL | NETIF_F_RXCSUM | NETIF_F_HW_VLAN_CTAG_RX; rtl_lock_work(tp); - if (features ^ dev->features); + if (features ^ dev->features) __rtl8169_set_features(dev, features); rtl_unlock_work(tp); |