From 1148a9f2fa576195b8f5ebd07b01483628329bf4 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Thu, 2 Sep 2004 20:30:25 -0700 Subject: [PATCH] [PATCH] fix drivers/net/cs89x0.c warning. drivers/net/cs89x0.c: In function `net_close': drivers/net/cs89x0.c:1601: warning: unused variable `lp' 'lp'is only used when ALLOW_DMA is defined. Signed-off-by: Luiz Capitulino Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/net/cs89x0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index b6c5e840ea5ea..3ce3237b1686e 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c @@ -1598,7 +1598,9 @@ static void release_dma_buff(struct net_local *lp) static int net_close(struct net_device *dev) { +#if ALLOW_DMA struct net_local *lp = netdev_priv(dev); +#endif netif_stop_queue(dev); -- 2.53.0