提交 52845c3f 编写于 作者: Y Yoichi Yuasa 提交者: Jeff Garzik

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: NYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 e57b641d
...@@ -1397,9 +1397,7 @@ net_open(struct net_device *dev) ...@@ -1397,9 +1397,7 @@ net_open(struct net_device *dev)
release_dma: release_dma:
#if ALLOW_DMA #if ALLOW_DMA
free_dma(dev->dma); free_dma(dev->dma);
#endif
release_irq: release_irq:
#if ALLOW_DMA
release_dma_buff(lp); release_dma_buff(lp);
#endif #endif
writereg(dev, PP_LineCTL, readreg(dev, PP_LineCTL) & ~(SERIAL_TX_ON | SERIAL_RX_ON)); writereg(dev, PP_LineCTL, readreg(dev, PP_LineCTL) & ~(SERIAL_TX_ON | SERIAL_RX_ON));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册