i40evf: don't violate scope
authorMitch Williams <mitch.a.williams@intel.com>
Wed, 4 Jun 2014 08:45:16 +0000 (08:45 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Jul 2014 02:02:18 +0000 (19:02 -0700)
commit4334edf53a032f54403d1f367b501502a8c61e93
treee97ce15c8e39d7286a3987cd7e5a6da8d382d46d
parent49d7d933316375665cea49473d563cb8447d8a06
i40evf: don't violate scope

Move a declaration up one level so we don't dereference it out of scope.
This didn't cause any panics, but the details->async field would
mysteriously disappear, causing unnecessary delays when sending AQ
commands. Also, the code is just plain wrong.

Change-ID: I753f64f13c55e5d75ea4351e29b14fb53b2f0104
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40e_common.c