diff options
author | Emil Tantilov <emil.s.tantilov@intel.com> | 2010-10-12 18:20:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-14 13:49:42 -0400 |
commit | f32f837b75233588cd4f8542214a30915ab7847b (patch) | |
tree | 564ca1eafbfb777eeb3be8d67fbd74e2b01446c9 /drivers/net/ixgbe/ixgbe_common.c | |
parent | ee87a82a28cddbb9267a294172ecb3d3d3bdaa6c (diff) |
ixgbe: remove unused functions
Remove functions that are declared, but not used in the driver.
This patch fixes warnings reported by `make namespacecheck`
Reported by Stephen Hemminger
CC: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_common.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_common.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/drivers/net/ixgbe/ixgbe_common.c b/drivers/net/ixgbe/ixgbe_common.c index 9595b1bfb8dd..939e60f43fb9 100644 --- a/drivers/net/ixgbe/ixgbe_common.c +++ b/drivers/net/ixgbe/ixgbe_common.c | |||
@@ -2704,48 +2704,3 @@ s32 ixgbe_check_mac_link_generic(struct ixgbe_hw *hw, ixgbe_link_speed *speed, | |||
2704 | 2704 | ||
2705 | return 0; | 2705 | return 0; |
2706 | } | 2706 | } |
2707 | |||
2708 | /** | ||
2709 | * ixgbe_get_wwn_prefix_generic - Get alternative WWNN/WWPN prefix from | ||
2710 | * the EEPROM | ||
2711 | * @hw: pointer to hardware structure | ||
2712 | * @wwnn_prefix: the alternative WWNN prefix | ||
2713 | * @wwpn_prefix: the alternative WWPN prefix | ||
2714 | * | ||
2715 | * This function will read the EEPROM from the alternative SAN MAC address | ||
2716 | * block to check the support for the alternative WWNN/WWPN prefix support. | ||
2717 | **/ | ||
2718 | s32 ixgbe_get_wwn_prefix_generic(struct ixgbe_hw *hw, u16 *wwnn_prefix, | ||
2719 | u16 *wwpn_prefix) | ||
2720 | { | ||
2721 | u16 offset, caps; | ||
2722 | u16 alt_san_mac_blk_offset; | ||
2723 | |||
2724 | /* clear output first */ | ||
2725 | *wwnn_prefix = 0xFFFF; | ||
2726 | *wwpn_prefix = 0xFFFF; | ||
2727 | |||
2728 | /* check if alternative SAN MAC is supported */ | ||
2729 | hw->eeprom.ops.read(hw, IXGBE_ALT_SAN_MAC_ADDR_BLK_PTR, | ||
2730 | &alt_san_mac_blk_offset); | ||
2731 | |||
2732 | if ((alt_san_mac_blk_offset == 0) || | ||
2733 | (alt_san_mac_blk_offset == 0xFFFF)) | ||
2734 | goto wwn_prefix_out; | ||
2735 | |||
2736 | /* check capability in alternative san mac address block */ | ||
2737 | offset = alt_san_mac_blk_offset + IXGBE_ALT_SAN_MAC_ADDR_CAPS_OFFSET; | ||
2738 | hw->eeprom.ops.read(hw, offset, &caps); | ||
2739 | if (!(caps & IXGBE_ALT_SAN_MAC_ADDR_CAPS_ALTWWN)) | ||
2740 | goto wwn_prefix_out; | ||
2741 | |||
2742 | /* get the corresponding prefix for WWNN/WWPN */ | ||
2743 | offset = alt_san_mac_blk_offset + IXGBE_ALT_SAN_MAC_ADDR_WWNN_OFFSET; | ||
2744 | hw->eeprom.ops.read(hw, offset, wwnn_prefix); | ||
2745 | |||
2746 | offset = alt_san_mac_blk_offset + IXGBE_ALT_SAN_MAC_ADDR_WWPN_OFFSET; | ||
2747 | hw->eeprom.ops.read(hw, offset, wwpn_prefix); | ||
2748 | |||
2749 | wwn_prefix_out: | ||
2750 | return 0; | ||
2751 | } | ||