[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110629062951.GD14591@shale.localdomain>
Date: Wed, 29 Jun 2011 09:29:51 +0300
From: Dan Carpenter <error27@...il.com>
To: Krzysztof Halasa <khc@...waw.pl>
Cc: "open list:NETWORKING DRIVERS" <netdev@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [patch] wanxl: remove a stray irq enable
This is error path calls unlock_irq() where we haven't disabled the
IRQs. The comment says that this error path can never happen.
Signed-off-by: Dan Carpenter <error27@...il.com>
---
This is a static checker fix and I don't have the hardware to test.
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c
index 8d7aa43..44b7071 100644
--- a/drivers/net/wan/wanxl.c
+++ b/drivers/net/wan/wanxl.c
@@ -284,7 +284,7 @@ static netdev_tx_t wanxl_xmit(struct sk_buff *skb, struct net_device *dev)
printk(KERN_DEBUG "%s: transmitter buffer full\n", dev->name);
#endif
netif_stop_queue(dev);
- spin_unlock_irq(&port->lock);
+ spin_unlock(&port->lock);
return NETDEV_TX_BUSY; /* request packet to be queued */
}
--
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