]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix uninitialized variable
authorCatherine Sullivan <catherine.sullivan@intel.com>
Wed, 13 Apr 2016 10:08:27 +0000 (03:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 May 2016 00:05:05 +0000 (17:05 -0700)
commit4681b112c9e01d3e09af9cea1f346bc3e3c744fd
tree0cf02021059795220643d695be2581bbdb2b24cf
parent4b0626ed1a62c1c6744935d486fb75b5347e6c35
i40e: Fix uninitialized variable

We have an uninitialized variable warning for valid_len for one case in
validate_vf_mesg. To fix this, just initialize it to 0 at the top of the
function and remove all of the now redundant assignments to 0 in the
individual cases.

Change-Id: Iacbd97f4c521ed8d662eef803a598d8707708cfd
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c