Skip to content

Commit 92ace48

Browse files
bwallanJeff Kirsher
authored andcommitted
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: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent 757976a commit 92ace48

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/net/ethernet/intel/ice/ice_main.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ static int ice_vsi_sync_fltr(struct ice_vsi *vsi)
346346
vsi->current_netdev_flags &= ~IFF_ALLMULTI;
347347
goto out_promisc;
348348
}
349-
} else if (!(vsi->current_netdev_flags & IFF_ALLMULTI)) {
349+
} else {
350+
/* !(vsi->current_netdev_flags & IFF_ALLMULTI) */
350351
if (vsi->vlan_ena)
351352
promisc_m = ICE_MCAST_VLAN_PROMISC_BITS;
352353
else

0 commit comments

Comments
 (0)