mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-04 11:35:28 +07:00
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>
This commit is contained in:
parent
92ace4824c
commit
86a2e00d20
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user