Re: [PATCH v3] nfp: abm: Fix incomplete release of system resources in nfp_abm_vnic_set_mac()

From: Markus Elfring
Date: Mon May 04 2020 - 02:02:43 EST


> â Thus add a call of the function
> ânfp_nsp_closeâ for the completion of the exception handling.

I suggest to mention also the addition of a jump target because of
a Linux coding style concern.


â
> +++ b/drivers/net/ethernet/netronome/nfp/abm/main.c
â
> @@ -300,12 +297,16 @@ nfp_abm_vnic_set_mac(struct nfp_pf *pf, struct nfp_abm *abm, struct nfp_net *nn,
â
> +generate_random_address:
> + eth_hw_addr_random(nn->dp.netdev);
> + return;
> }
â

I recommend to apply the check âRETURN_VOIDâ once more.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/checkpatch.pl?id=0e698dfa282211e414076f9dc7e83c1c288314fd#n4866

Regards,
Markus