Skip to content

Commit

Permalink
net: vlan: remove reduntant check in ndo_fix_features callback
Browse files Browse the repository at this point in the history
Use the fact that ORing with zero is a no-op.

Signed-off-by: Michał Mirosław <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
osctobe authored and davem330 committed Jul 14, 2011
1 parent 512e400 commit 6c9c1b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,7 @@ static u32 vlan_dev_fix_features(struct net_device *dev, u32 features)
features &= real_dev->features;
features &= real_dev->vlan_features;

if (old_features & NETIF_F_SOFT_FEATURES)
features |= old_features & NETIF_F_SOFT_FEATURES;
features |= old_features & NETIF_F_SOFT_FEATURES;

if (dev_ethtool_get_rx_csum(real_dev))
features |= NETIF_F_RXCSUM;
Expand Down

0 comments on commit 6c9c1b5

Please sign in to comment.