]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rt2860: Fix incorrect netif_stop_queue usage warning
authorDenis Kirjanov <dkirjanov@kernel.org>
Mon, 10 Jan 2011 20:09:30 +0000 (20:09 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:13:49 +0000 (15:13 -0800)
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 <dkirjanov@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/rt_main_dev.c

index ad60ceaf4b88694a50242cebde07d31af1c69d8d..caf8b7623cb1df079ae8ebfee053ba6808c1fd62 100644 (file)
@@ -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;
 
 }