]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cs89x0: fix warning release_irq label
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Mon, 25 Aug 2008 14:37:36 +0000 (23:37 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:49:04 +0000 (18:49 -0400)
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>
drivers/net/cs89x0.c

index ea6144a9565e571665db792b7686a31ff991c823..b0b66766ed27bf8de0d1c46f67283b9b030025ed 100644 (file)
@@ -1397,9 +1397,7 @@ net_open(struct net_device *dev)
 release_dma:
 #if ALLOW_DMA
                free_dma(dev->dma);
-#endif
 release_irq:
-#if ALLOW_DMA
                release_dma_buff(lp);
 #endif
                 writereg(dev, PP_LineCTL, readreg(dev, PP_LineCTL) & ~(SERIAL_TX_ON | SERIAL_RX_ON));