aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2019-07-08 16:12:26 -0700
committerJeff Kirsher <[email protected]>2019-08-01 14:57:38 -0700
commit71974d7e8556860c5ebe9bb37d598975f1e0c4e3 (patch)
tree561a46b40372bed6f263de172f6e2d25b120a9b3 /tools/perf/scripts/python/export-to-sqlite.py
parentd56b47791d3464178be2aa2d61db694331d50d5a (diff)
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 <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions