summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2019-07-09 02:12:26 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-08-02 00:57:38 +0300
commit71974d7e8556860c5ebe9bb37d598975f1e0c4e3 (patch)
tree561a46b40372bed6f263de172f6e2d25b120a9b3 /tools/perf/scripts/python/exported-sql-viewer.py
parentd56b47791d3464178be2aa2d61db694331d50d5a (diff)
downloadlinux-71974d7e8556860c5ebe9bb37d598975f1e0c4e3.tar.xz
fm10k: reduce the scope of the local msg variable
The msg variable in the fm10k_mbx_validate_msg_size and fm10k_sm_mbx_transmit functions is only used within the do {} loop scope. Reduce its scope only to where it is used. This was detected by cppcheck, and resolves the following warnings produced by that tool: [fm10k_mbx.c:299]: (style) The scope of the variable 'msg' can be reduced. [fm10k_mbx.c:2004]: (style) The scope of the variable 'msg' 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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions