提交 85911d71 编写于 作者: D Dan Carpenter 提交者: David S. Miller

r8169: fix an if condition

There is an extra semi-colon so __rtl8169_set_features() is called every
time.

Fixes: 929a031d ('r8169: adjust __rtl8169_set_features')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: Hayes Wang <hayeswang@realtek.com>--
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d70b1137
...@@ -1818,7 +1818,7 @@ static int rtl8169_set_features(struct net_device *dev, ...@@ -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; features &= NETIF_F_RXALL | NETIF_F_RXCSUM | NETIF_F_HW_VLAN_CTAG_RX;
rtl_lock_work(tp); rtl_lock_work(tp);
if (features ^ dev->features); if (features ^ dev->features)
__rtl8169_set_features(dev, features); __rtl8169_set_features(dev, features);
rtl_unlock_work(tp); rtl_unlock_work(tp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册