Skip to contentSkip to conversation

front: Remove duplicate maybe_wake_tx

NET Herbert Xu 1 participant 1 message May 18, 2006

lore
Share & tools
lore

Herbert Xu

author
#0 lore raw

Hi:

[NET] front: Remove duplicate maybe_wake_tx

Since network_tx_buf_gc unconditionally calls network_maybe_wake_tx at the end unless the backend is not connected, there is no need to call it again immediately afterwards.

Cheers,

Signature · 17 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
diff -r 3d3e5a3008f6 linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Thu May 18 16:19:18 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Fri May 19 08:48:40 2006 +1000
@@ -1046,8 +1046,6 @@ static void network_connect(struct net_d
 	notify_remote_via_irq(np->irq);
 	network_tx_buf_gc(dev);
 
-	network_maybe_wake_tx(dev);
-
 	spin_unlock(&np->rx_lock);
 	spin_unlock_irq(&np->tx_lock);
 }