fm10k: remove unnecessary variable initializer
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 8 Jul 2019 23:12:29 +0000 (16:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 4 Aug 2019 11:20:42 +0000 (04:20 -0700)
commitd9ecd1f748f2ddb7cc15d56acadbc90b3ce235a9
treebffb0bede921353c7c365aa919c978710efb07aa
parent9e8fb25254f76cb483303d8e9a97ed80a65418fe
fm10k: remove unnecessary variable initializer

The err variable in the fm10k_tlv_attr_parse function is initialized
with zero. However, the function never reads err without first assigning
it from a function call. Remove this unnecessary initialization.

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

[fm10k_tlv.c:498]: (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>
drivers/net/ethernet/intel/fm10k/fm10k_tlv.c