Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bruce Allan and committed by
Jeff Kirsher
92ace482 757976ab

+2 -1
+2 -1
drivers/net/ethernet/intel/ice/ice_main.c
··· 346 346 vsi->current_netdev_flags &= ~IFF_ALLMULTI; 347 347 goto out_promisc; 348 348 } 349 - } else if (!(vsi->current_netdev_flags & IFF_ALLMULTI)) { 349 + } else { 350 + /* !(vsi->current_netdev_flags & IFF_ALLMULTI) */ 350 351 if (vsi->vlan_ena) 351 352 promisc_m = ICE_MCAST_VLAN_PROMISC_BITS; 352 353 else