]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: reduce the scope of local err variable
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 8 Jul 2019 23:12:21 +0000 (16:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 1 Aug 2019 21:13:18 +0000 (14:13 -0700)
commit9e10cf50ed91c569477160cba97ff5e469fe8ef3
treec8b0df75f8a8a027a3c8b36817d0a4f4e5f65dc8
parentecf2589840e9396ae2119d8f51a3899c56595072
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@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_iov.c