Commit a9b121c4 authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Jeff Garzik

smc911x: Fix unused variable warning.

The smc911x_local pointer in smc911x_rcv is only used in the SMC_USE_DMA
case. Move it under the #ifdef so GCC doesn't generate a warning in the
non-DMA case.
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent d0c4581b
...@@ -428,7 +428,6 @@ static inline void smc911x_drop_pkt(struct net_device *dev) ...@@ -428,7 +428,6 @@ static inline void smc911x_drop_pkt(struct net_device *dev)
*/ */
static inline void smc911x_rcv(struct net_device *dev) static inline void smc911x_rcv(struct net_device *dev)
{ {
struct smc911x_local *lp = netdev_priv(dev);
unsigned long ioaddr = dev->base_addr; unsigned long ioaddr = dev->base_addr;
unsigned int pkt_len, status; unsigned int pkt_len, status;
struct sk_buff *skb; struct sk_buff *skb;
...@@ -473,6 +472,7 @@ static inline void smc911x_rcv(struct net_device *dev) ...@@ -473,6 +472,7 @@ static inline void smc911x_rcv(struct net_device *dev)
skb_put(skb,pkt_len-4); skb_put(skb,pkt_len-4);
#ifdef SMC_USE_DMA #ifdef SMC_USE_DMA
{ {
struct smc911x_local *lp = netdev_priv(dev);
unsigned int fifo; unsigned int fifo;
/* Lower the FIFO threshold if possible */ /* Lower the FIFO threshold if possible */
fifo = SMC_GET_FIFO_INT(); fifo = SMC_GET_FIFO_INT();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment