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)
commit027bb561eff4a5c2185d3cbad6a41785eb50dded
treec4f014ec815e9316e913247b6d715e84c66a4a08
parentd7de3c6e8154c0d0398127bcc09977e260fdff55
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