summaryrefslogtreecommitdiff
path: root/security/apparmor/include
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2019-07-09 02:12:30 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-08-04 14:29:04 +0300
commit4d12002fd29ad8d8c3da0232153217bee4f10326 (patch)
treefeac82c5df149e3372d9f59cbf9a202c1eddf66d /security/apparmor/include
parentd9ecd1f748f2ddb7cc15d56acadbc90b3ce235a9 (diff)
downloadlinux-4d12002fd29ad8d8c3da0232153217bee4f10326.tar.xz
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 <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 'security/apparmor/include')
0 files changed, 0 insertions, 0 deletions