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

ice: remove unnecessary check

The variable status cannot be zero due to a prior check of it; remove this
check.

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
86a2e00d 92ace482

+1 -1
+1 -1
drivers/net/ethernet/intel/ice/ice_main.c
··· 149 149 /* We aren't useful with no MAC filters, so unregister if we 150 150 * had an error 151 151 */ 152 - if (status && vsi->netdev->reg_state == NETREG_REGISTERED) { 152 + if (vsi->netdev->reg_state == NETREG_REGISTERED) { 153 153 dev_err(ice_pf_to_dev(pf), "Could not add MAC filters error %s. Unregistering device\n", 154 154 ice_stat_str(status)); 155 155 unregister_netdev(vsi->netdev);