summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mwifiex/cmdevt.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2014-02-28 07:35:16 +0400
committerJohn W. Linville <linville@tuxdriver.com>2014-02-28 23:33:46 +0400
commite50e06fd0418d5994fad8ca8d3ce049403059112 (patch)
tree6539e431fd6bfefb598c02af1cbdafa619053b44 /drivers/net/wireless/mwifiex/cmdevt.c
parent38ec3f3f6142d1517ce0f1c96502fd1c05d2fc52 (diff)
downloadlinux-e50e06fd0418d5994fad8ca8d3ce049403059112.tar.xz
mwifiex: get rid of extra num_cmd_timeout variable
We already have one in mwifiex_adapter structure. 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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/cmdevt.c')
-rw-r--r--drivers/net/wireless/mwifiex/cmdevt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c
index 83195d96e78c..686943c52d18 100644
--- a/drivers/net/wireless/mwifiex/cmdevt.c
+++ b/drivers/net/wireless/mwifiex/cmdevt.c
@@ -892,7 +892,6 @@ mwifiex_cmd_timeout_func(unsigned long function_context)
struct timeval tstamp;
adapter->num_cmd_timeout++;
- adapter->dbg.num_cmd_timeout++;
if (!adapter->curr_cmd) {
dev_dbg(adapter->dev, "cmd: empty curr_cmd\n");
return;
@@ -916,7 +915,7 @@ mwifiex_cmd_timeout_func(unsigned long function_context)
adapter->dbg.num_cmd_host_to_card_failure);
dev_err(adapter->dev, "num_cmd_timeout = %d\n",
- adapter->dbg.num_cmd_timeout);
+ adapter->num_cmd_timeout);
dev_err(adapter->dev, "num_tx_timeout = %d\n",
adapter->dbg.num_tx_timeout);