Skip to contentSkip to conversation

wanxl: remove a stray irq enable

PATCH New Dan Carpenter 1 participant 1 message Jun 29, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
This is a static checker fix and I don't have the hardware to test.

drivers/net/wan/wanxl.c +1 -1
index 8d7aa43..44b7071 100644
@@ -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 */
 	}