]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: Fix uninitialized variable
authorCatherine Sullivan <catherine.sullivan@intel.com>
Wed, 13 Apr 2016 10:08:27 +0000 (03:08 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 17:41:14 +0000 (10:41 -0700)
commit25b1851c76782ba19251786f244eb184bb7e7fb6
tree5d1a7f01260ac5b5d5a97fedbdf891efa9af02e2
parent8ff5083cb4f7ed35c2fff3eb5bc650ab201be058
i40e: Fix uninitialized variable

Orabug: 23176970

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>
(cherry picked from commit 3ed439c56e0d82fd08275fff2c21278f92ed8ec5)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c