mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
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>
This commit is contained in:
parent
a6952b5299
commit
354b45fff9
1 changed files with 1 additions and 1 deletions
|
@ -201,9 +201,9 @@ static int nx_set_dma_mask(struct netxen_adapter *adapter, uint8_t revision_id)
|
||||||
adapter->pci_using_dac = 1;
|
adapter->pci_using_dac = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
set_32_bit_mask:
|
||||||
#endif /* CONFIG_IA64 */
|
#endif /* CONFIG_IA64 */
|
||||||
|
|
||||||
set_32_bit_mask:
|
|
||||||
err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
|
err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
|
||||||
if (!err)
|
if (!err)
|
||||||
err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
|
err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
|
||||||
|
|
Loading…
Reference in a new issue