[Intel-wired-lan] [PATCH 04/19] fm10k: reduce the scope of local err variable
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Jul 12 18:00:58 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Jacob Keller
> Sent: Monday, July 8, 2019 4:12 PM
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Subject: [Intel-wired-lan] [PATCH 04/19] fm10k: reduce the scope of local err
> variable
>
> Reduce the scope of the local err variable in the fm10k_iov_alloc_data
> function.
>
> This was detected by cppcheck and resolves the following style warning
> produced by that tool:
>
> [fm10k_iov.c:426]: (style) The scope of the variable 'err' can be reduced.
>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
> drivers/net/ethernet/intel/fm10k/fm10k_iov.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list