Skip to content

Commit 86a2e00

Browse files
bwallanJeff Kirsher
authored andcommitted
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>
1 parent 92ace48 commit 86a2e00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/intel/ice/ice_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static int ice_init_mac_fltr(struct ice_pf *pf)
149149
/* We aren't useful with no MAC filters, so unregister if we
150150
* had an error
151151
*/
152-
if (status && vsi->netdev->reg_state == NETREG_REGISTERED) {
152+
if (vsi->netdev->reg_state == NETREG_REGISTERED) {
153153
dev_err(ice_pf_to_dev(pf), "Could not add MAC filters error %s. Unregistering device\n",
154154
ice_stat_str(status));
155155
unregister_netdev(vsi->netdev);

0 commit comments

Comments
 (0)