diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2020-05-07 17:41:11 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2020-05-21 22:10:04 -0700 |
commit | 86a2e00d20bd4f7fd0efd1cccd8d5a5d7270b640 (patch) | |
tree | 0a1286ac745eb8766dbd7b8854d9e58ac6ea635f /drivers/net | |
parent | 92ace4824c1cf0cf2094e51501e3c48176a4f2a2 (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index fffb3433969c..c3e5c4334e26 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -149,7 +149,7 @@ static int ice_init_mac_fltr(struct ice_pf *pf) /* We aren't useful with no MAC filters, so unregister if we * had an error */ - if (status && vsi->netdev->reg_state == NETREG_REGISTERED) { + if (vsi->netdev->reg_state == NETREG_REGISTERED) { dev_err(ice_pf_to_dev(pf), "Could not add MAC filters error %s. Unregistering device\n", ice_stat_str(status)); unregister_netdev(vsi->netdev); |