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.33.8~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=244b7f557447aafbe3bae0d3c25665fc5826b3b4;p=thirdparty%2Fkernel%2Fstable.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 c3d92802d0c96..df559dac768a1 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; }