aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/cmdevt.c
diff options
context:
space:
mode:
authorYogesh Ashok Powar <yogeshp@marvell.com>2011-04-13 20:27:07 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-14 15:35:12 -0400
commit19a898601ad192d8c59c3a8f1a4501919f53b94d (patch)
tree4d1405ad86f7c69ef63cbdc6dca3dc5e34f844da /drivers/net/wireless/mwifiex/cmdevt.c
parent600f5d909a54a8dccf8c8c23898fc2e91bc0953e (diff)
mwifiex: remove redundant "return" at end of void function
The return statement at the last line of a void function is not necessary. Signed-off-by: Yogesh Ashok Powar <yogeshp@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.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c
index bb6fecd77619..776146a104ec 100644
--- a/drivers/net/wireless/mwifiex/cmdevt.c
+++ b/drivers/net/wireless/mwifiex/cmdevt.c
@@ -94,8 +94,6 @@ mwifiex_clean_cmd_node(struct mwifiex_adapter *adapter,
94 mwifiex_recv_complete(adapter, cmd_node->resp_skb, 0); 94 mwifiex_recv_complete(adapter, cmd_node->resp_skb, 0);
95 cmd_node->resp_skb = NULL; 95 cmd_node->resp_skb = NULL;
96 } 96 }
97
98 return;
99} 97}
100 98
101/* 99/*
@@ -536,7 +534,7 @@ mwifiex_insert_cmd_to_free_q(struct mwifiex_adapter *adapter,
536{ 534{
537 unsigned long flags; 535 unsigned long flags;
538 536
539 if (cmd_node == NULL) 537 if (!cmd_node)
540 return; 538 return;
541 539
542 if (cmd_node->wait_q_enabled) 540 if (cmd_node->wait_q_enabled)
@@ -548,8 +546,6 @@ mwifiex_insert_cmd_to_free_q(struct mwifiex_adapter *adapter,
548 spin_lock_irqsave(&adapter->cmd_free_q_lock, flags); 546 spin_lock_irqsave(&adapter->cmd_free_q_lock, flags);
549 list_add_tail(&cmd_node->list, &adapter->cmd_free_q); 547 list_add_tail(&cmd_node->list, &adapter->cmd_free_q);
550 spin_unlock_irqrestore(&adapter->cmd_free_q_lock, flags); 548 spin_unlock_irqrestore(&adapter->cmd_free_q_lock, flags);
551
552 return;
553} 549}
554 550
555/* 551/*
@@ -594,8 +590,6 @@ mwifiex_insert_cmd_to_pending_q(struct mwifiex_adapter *adapter,
594 spin_unlock_irqrestore(&adapter->cmd_pending_q_lock, flags); 590 spin_unlock_irqrestore(&adapter->cmd_pending_q_lock, flags);
595 591
596 dev_dbg(adapter->dev, "cmd: QUEUE_CMD: cmd=%#x is queued\n", command); 592 dev_dbg(adapter->dev, "cmd: QUEUE_CMD: cmd=%#x is queued\n", command);
597
598 return;
599} 593}
600 594
601/* 595/*
@@ -871,8 +865,6 @@ mwifiex_cmd_timeout_func(unsigned long function_context)
871 } 865 }
872 if (adapter->hw_status == MWIFIEX_HW_STATUS_INITIALIZING) 866 if (adapter->hw_status == MWIFIEX_HW_STATUS_INITIALIZING)
873 mwifiex_init_fw_complete(adapter); 867 mwifiex_init_fw_complete(adapter);
874
875 return;
876} 868}
877 869
878/* 870/*
@@ -989,8 +981,6 @@ mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter)
989 } 981 }
990 adapter->cmd_wait_q.status = -1; 982 adapter->cmd_wait_q.status = -1;
991 mwifiex_complete_cmd(adapter); 983 mwifiex_complete_cmd(adapter);
992
993 return;
994} 984}
995 985
996/* 986/*
@@ -1094,7 +1084,6 @@ mwifiex_process_hs_config(struct mwifiex_adapter *adapter)
1094 adapter->is_hs_configured = false; 1084 adapter->is_hs_configured = false;
1095 mwifiex_hs_activated_event(mwifiex_get_priv(adapter, 1085 mwifiex_hs_activated_event(mwifiex_get_priv(adapter,
1096 MWIFIEX_BSS_ROLE_ANY), false); 1086 MWIFIEX_BSS_ROLE_ANY), false);
1097 return;
1098} 1087}
1099 1088
1100/* 1089/*