]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: change mac_type if statements to switch statements
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 17 Nov 2010 03:27:03 +0000 (19:27 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Nov 2010 03:27:03 +0000 (19:27 -0800)
commit05834b8e40697d5e8f7d4d9fa46d6060828bcaf6
treeb4fcbe0313d482c79a423acb6eac18d90940067a
parent2cbcb37c0709f20cb13feec4e46843f8887307c9
ixgbe: change mac_type if statements to switch statements

This change replaces a number of if/elseif/else statements with switch
statements to support the addition of future devices to the ixgbe driver.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_ethtool.c
drivers/net/ixgbe/ixgbe_main.c