[Intel-wired-lan] [PATCH net] i40e: Fix sparse error: 'vsi->netdev' could be null

Switzer, David david.switzer at intel.com
Wed Apr 7 22:55:42 UTC 2021



>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
>Arkadiusz Kubalewski
>Sent: Friday, March 26, 2021 11:44 AM
>To: intel-wired-lan at lists.osuosl.org
>Cc: Loktionov, Aleksandr <aleksandr.loktionov at intel.com>
>Subject: [Intel-wired-lan] [PATCH net] 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: b603f9dc20af ("i40e: Log info when PF is entering and leaving Allmulti
>mode.")
>Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov at intel.com>
>Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski at intel.com>
>---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Tested-by: Dave Switzer <david.switzer at intel.com>
 



More information about the Intel-wired-lan mailing list