[Intel-wired-lan] [PATCH 01/19] fm10k: reduce scope of the err variable

Bowers, AndrewX andrewx.bowers at intel.com
Fri Jul 12 17:59:06 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 01/19] fm10k: reduce scope of the err
> variable
> 
> Reduce the scope of the err local variable in the fm10k_dcbnl_ieee_setets
> function.
> 
> This was detected using cppcheck, and resolves the following style
> warning:
> 
> [fm10k_dcbnl.c:37]: (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_dcbnl.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>





More information about the Intel-wired-lan mailing list