diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2009-02-12 19:57:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-12 19:57:12 -0500 |
commit | 354b45fff90c3448c1eadabfad6ae7b8b8a2a237 (patch) | |
tree | a74f7d4d8ce564ac97574597c8b1135956de7596 | |
parent | a6952b5299ab506051f05395f7c26ff1352759ad (diff) |
netxen: fix compile waring "label ‘set_32_bit_mask’ defined but not used" on IA64 platform
When compile the latest kernel on IA64 platform,I got a warning:
drivers/net/netxen/netxen_nic_main.c:203: warning: label ‘set_32_bit_mask’
defined but not used
We do not need label ‘set_32_bit_mask’ on IA64 platform,So move it to #else.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index e02fe5ad2154..9f33e442f403 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -201,9 +201,9 @@ static int nx_set_dma_mask(struct netxen_adapter *adapter, uint8_t revision_id) | |||
201 | adapter->pci_using_dac = 1; | 201 | adapter->pci_using_dac = 1; |
202 | return 0; | 202 | return 0; |
203 | } | 203 | } |
204 | set_32_bit_mask: | ||
204 | #endif /* CONFIG_IA64 */ | 205 | #endif /* CONFIG_IA64 */ |
205 | 206 | ||
206 | set_32_bit_mask: | ||
207 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 207 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
208 | if (!err) | 208 | if (!err) |
209 | err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); | 209 | err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); |