Commit 6c9c1b5456e3ba0b4a1a43866600e84bbba0db12

Authored by Michał Mirosław
Committed by David S. Miller
1 parent 512e4002ab

net: vlan: remove reduntant check in ndo_fix_features callback

Use the fact that ORing with zero is a no-op.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

net/8021q/vlan_dev.c
... ... @@ -593,8 +593,7 @@
593 593 features &= real_dev->features;
594 594 features &= real_dev->vlan_features;
595 595  
596   - if (old_features & NETIF_F_SOFT_FEATURES)
597   - features |= old_features & NETIF_F_SOFT_FEATURES;
  596 + features |= old_features & NETIF_F_SOFT_FEATURES;
598 597  
599 598 if (dev_ethtool_get_rx_csum(real_dev))
600 599 features |= NETIF_F_RXCSUM;