[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080825233736.e7a17376.yoichi_yuasa@tripeaks.co.jp>
Date: Mon, 25 Aug 2008 23:37:36 +0900
From: Yoichi Yuasa <yoichi_yuasa@...peaks.co.jp>
To: Jeff Garzik <jeff@...zik.org>
Cc: yoichi_yuasa@...peaks.co.jp, netdev <netdev@...r.kernel.org>
Subject: [PATCH] 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@...peaks.co.jp>
diff -pruN -X /home/yuasa/Memo/dontdiff linux-orig/drivers/net/cs89x0.c linux/drivers/net/cs89x0.c
--- linux-orig/drivers/net/cs89x0.c 2008-08-07 13:14:59.904521743 +0900
+++ linux/drivers/net/cs89x0.c 2008-08-07 16:11:31.469037245 +0900
@@ -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));
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists