Skip to content

Commit 6b5674f

Browse files
kubalewskianguy11
authored andcommitted
i40e: Fix sparse error: 'vsi->netdev' could be null
Remove vsi->netdev->name from the trace. This is redundant information. With the devinfo trace, the adapter is already identifiable. Previously following error was produced when compiling against sparse. i40e_main.c:2571 i40e_sync_vsi_filters() error: we previously assumed 'vsi->netdev' could be null (see line 2323) Fixes: b603f9d ("i40e: Log info when PF is entering and leaving Allmulti mode.") Signed-off-by: Aleksandr Loktionov <[email protected]> Signed-off-by: Arkadiusz Kubalewski <[email protected]> Tested-by: Dave Switzer <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent d6d04ee commit 6b5674f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,8 +2560,7 @@ int i40e_sync_vsi_filters(struct i40e_vsi *vsi)
25602560
i40e_stat_str(hw, aq_ret),
25612561
i40e_aq_str(hw, hw->aq.asq_last_status));
25622562
} else {
2563-
dev_info(&pf->pdev->dev, "%s is %s allmulti mode.\n",
2564-
vsi->netdev->name,
2563+
dev_info(&pf->pdev->dev, "%s allmulti mode.\n",
25652564
cur_multipromisc ? "entering" : "leaving");
25662565
}
25672566
}

0 commit comments

Comments
 (0)