]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: reduce scope of the err variable
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 8 Jul 2019 23:12:18 +0000 (16:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 1 Aug 2019 20:57:33 +0000 (13:57 -0700)
commit001a5d1902e0adc834015933d783132a906fe35a
tree7ac855f31c885f62e54b9f862dc2ecfebbcfdeb9
parentd47386cd0acfac4e669cc4f57b7edf8a83ee33ba
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@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c