]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: move msix_entries allocation into ixgbe_acquire_msix_vectors
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 3 Sep 2014 08:12:56 +0000 (08:12 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Sep 2014 10:48:49 +0000 (03:48 -0700)
commit9c642844fd06572e7fb0f19ab16bba26b8835b0d
treec4f014ec815e9316e913247b6d715e84c66a4a08
parentaa1a42f14d8e6fa6bd015abfb511ffa66d2e2608
ixgbe: move msix_entries allocation into ixgbe_acquire_msix_vectors

We already have to kfree this value if we fail, and this is only part of
MSI-X mode, so we should simply allocate the value where we need it.
This is cleaner, and makes it a lot more obvious why we are freeing it
inside of ixgbe_acquire_msix_vectors.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c