i40e: avoid use of uninitialized v_budget in i40e_init_msix
authorJohn W Linville <linville@tuxdriver.com>
Wed, 14 Jan 2015 03:06:28 +0000 (03:06 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Feb 2015 03:01:06 +0000 (19:01 -0800)
commit83840e4bd5a3ae0022e5cdd02bde149338b6b499
tree645bc201da70cf20abd83b34be11f778b7c2a0c2
parentcf86da489d9bf7abed2e7034d94e75fb17b7b1b2
i40e: avoid use of uninitialized v_budget in i40e_init_msix

This I40E_FCOE block increments v_budget before it has been initialized,
then v_budget gets overwritten a few lines later.  This patch just
reorders the code hunks in what I believe was the intended sequence.

Coverity: CID 1260099

Signed-off-by: John W Linville <linville@tuxdriver.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c