OSDN Git Service

fm10k: reduce the scope of the result local variable
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 8 Jul 2019 23:12:27 +0000 (16:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 1 Aug 2019 21:59:21 +0000 (14:59 -0700)
commit8e03f26b716f87c3bd1da212ec0fb3869ea47e64
tree35d54cbb1e313744c7c0145f7c82b51d76ce388c
parent71974d7e8556860c5ebe9bb37d598975f1e0c4e3
fm10k: reduce the scope of the result local variable

Reduce the scope of the result local variable in the
fm10k_iov_msg_lport_state_pf function.

This was detected by cppcheck and resolves the following warning
produced by that tool:

[fm10k_pf.c:1435]: (style) The scope of the variable 'result' 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_pf.c