aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2019-07-08 16:12:30 -0700
committerJeff Kirsher <[email protected]>2019-08-04 04:29:04 -0700
commit4d12002fd29ad8d8c3da0232153217bee4f10326 (patch)
treefeac82c5df149e3372d9f59cbf9a202c1eddf66d /tools/perf/scripts/python/intel-pt-events.py
parentd9ecd1f748f2ddb7cc15d56acadbc90b3ce235a9 (diff)
fm10k: remove needless assignment of err local variable
The local variable err in several functions in the fm10k_netdev.c file is initialized with a value that is never used. The err value is immediately re-assigned in all cases where it will be checked. Remove the unnecessary initializers. This was detected by cppcheck and resolves the following warnings produced by that tool: [fm10k_netdev.c:999] -> [fm10k_netdev.c:1004]: (style) Variable 'err' is reassigned a value before the old one has been used. [fm10k_netdev.c:1019] -> [fm10k_netdev.c:1024]: (style) Variable 'err' is reassigned a value before the old one has been used. [fm10k_netdev.c:64]: (style) Variable 'err' is assigned a value that is never used. [fm10k_netdev.c:131]: (style) Variable 'err' is assigned a value that is never used. 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/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions