From: Denis Kirjanov Date: Mon, 10 Jan 2011 20:09:30 +0000 (+0000) Subject: staging: rt2860: Fix incorrect netif_stop_queue usage warning X-Git-Tag: v2.6.36.4~134 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ce40627dba4a0e216f88e738be707b2b9021a8d1;p=karo-tx-linux.git staging: rt2860: Fix incorrect netif_stop_queue usage warning commit 9c33008412683eba91bce2dc4575f28c728b6bd1 upstream. The TX queues are allocated inside register_netdev. It doesn't make any sense to stop the queue before allocation. Signed-off-by: Denis Kirjanov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rt2860/rt_main_dev.c b/drivers/staging/rt2860/rt_main_dev.c index ad60ceaf4b88..caf8b7623cb1 100644 --- a/drivers/staging/rt2860/rt_main_dev.c +++ b/drivers/staging/rt2860/rt_main_dev.c @@ -483,8 +483,6 @@ struct net_device *RtmpPhyNetDevInit(struct rt_rtmp_adapter *pAd, net_dev->ml_priv = (void *)pAd; pAd->net_dev = net_dev; - netif_stop_queue(net_dev); - return net_dev; }