Commit 92ace482 authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Kirsher

ice: remove unnecessary expression that is always true

The else conditional expression is always true due to the if conditional
expression; remove it and add a comment to make it obvious still.
Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 757976ab
...@@ -346,7 +346,8 @@ static int ice_vsi_sync_fltr(struct ice_vsi *vsi) ...@@ -346,7 +346,8 @@ static int ice_vsi_sync_fltr(struct ice_vsi *vsi)
vsi->current_netdev_flags &= ~IFF_ALLMULTI; vsi->current_netdev_flags &= ~IFF_ALLMULTI;
goto out_promisc; goto out_promisc;
} }
} else if (!(vsi->current_netdev_flags & IFF_ALLMULTI)) { } else {
/* !(vsi->current_netdev_flags & IFF_ALLMULTI) */
if (vsi->vlan_ena) if (vsi->vlan_ena)
promisc_m = ICE_MCAST_VLAN_PROMISC_BITS; promisc_m = ICE_MCAST_VLAN_PROMISC_BITS;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment