vmxnet3: Fix MSI-X/MSI enablement code
authorAlexander Gordeev <agordeev@redhat.com>
Tue, 18 Feb 2014 10:12:02 +0000 (11:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Feb 2014 20:33:34 +0000 (15:33 -0500)
commitb60b869d5f9f0987cf4e3fee22fb88786a281de7
tree018ccc1c83901b5814004fac228ffa51e3e7a62d
parent9e7df17e2e98aa82aaff9ef79235799a75e05f13
vmxnet3: Fix MSI-X/MSI enablement code

This update cleans up the MSI-X/MSI enablement code, fixes
vmxnet3_acquire_msix_vectors() invalid return values and
enables a dead code in case VMXNET3_LINUX_MIN_MSIX_VECT
MSI-X vectors were allocated.

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Cc: Shreyas Bhatewara <sbhatewara@vmware.com>
Cc: pv-drivers@vmware.com
Cc: netdev@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c