diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2008-08-25 10:37:36 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 18:49:04 -0400 |
commit | 52845c3fd80c09f8ceac54513ae9cffac219cff7 (patch) | |
tree | c6428acab931f4d4dbca02d1db77a4c5c8098226 /drivers | |
parent | e57b641dfafc10ce23d26cf271fd2638589fdb3f (diff) |
cs89x0: fix warning release_irq label
release_irq label is only used when ALLOW_DMA is defined.
drivers/net/cs89x0.c: In function 'net_open':
drivers/net/cs89x0.c:1401: warning: label 'release_irq' defined but not used
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/cs89x0.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index ea6144a9565e..b0b66766ed27 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
@@ -1397,9 +1397,7 @@ net_open(struct net_device *dev) | |||
1397 | release_dma: | 1397 | release_dma: |
1398 | #if ALLOW_DMA | 1398 | #if ALLOW_DMA |
1399 | free_dma(dev->dma); | 1399 | free_dma(dev->dma); |
1400 | #endif | ||
1401 | release_irq: | 1400 | release_irq: |
1402 | #if ALLOW_DMA | ||
1403 | release_dma_buff(lp); | 1401 | release_dma_buff(lp); |
1404 | #endif | 1402 | #endif |
1405 | writereg(dev, PP_LineCTL, readreg(dev, PP_LineCTL) & ~(SERIAL_TX_ON | SERIAL_RX_ON)); | 1403 | writereg(dev, PP_LineCTL, readreg(dev, PP_LineCTL) & ~(SERIAL_TX_ON | SERIAL_RX_ON)); |