[Intel-wired-lan] [PATCH net] i40e: Fix sparse warning: missing error code 'err'

Switzer, David david.switzer at intel.com
Wed Apr 7 22:57:27 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 warning: missing error
>code 'err'
>Set proper return values inside error checking if-statements.
>Previously following warning was produced when compiling against sparse.
>i40e_main.c:15162 i40e_init_recovery_mode() warn: missing error code 'err'
>Fixes: 4ff0ee1af0169 ("i40e: Introduce recovery mode support")
>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 | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
Tested-by: Dave Switzer <david.switzer at intel.com>

More information about the Intel-wired-lan mailing list