Commit 86a2e00d authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Kirsher

ice: remove unnecessary check

The variable status cannot be zero due to a prior check of it; remove this
check.
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 92ace482
...@@ -149,7 +149,7 @@ static int ice_init_mac_fltr(struct ice_pf *pf) ...@@ -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 /* We aren't useful with no MAC filters, so unregister if we
* had an error * 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", dev_err(ice_pf_to_dev(pf), "Could not add MAC filters error %s. Unregistering device\n",
ice_stat_str(status)); ice_stat_str(status));
unregister_netdev(vsi->netdev); unregister_netdev(vsi->netdev);
......
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