mwifiex: remove unnecessary del_timer(cmd_timer)
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 23 Jul 2013 02:17:49 +0000 (19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Jul 2013 15:02:08 +0000 (11:02 -0400)
It is already there in mwifiex_unregister(). So unnecessary
call in mwifiex_adapter_cleanup() is removed in this patch.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/init.c

index f23520f47717a404d909e9632c7109a45498fec0..2a430c9cbd0e9968c2b211d85b46eee98ded9db6 100644 (file)
@@ -392,8 +392,6 @@ mwifiex_adapter_cleanup(struct mwifiex_adapter *adapter)
        dev_dbg(adapter->dev, "info: free cmd buffer\n");
        mwifiex_free_cmd_buffer(adapter);
 
-       del_timer(&adapter->cmd_timer);
-
        dev_dbg(adapter->dev, "info: free scan table\n");
 
        if (adapter->if_ops.cleanup_if)