diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2011-04-15 23:50:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-19 15:38:04 -0400 |
commit | 636c4598499eeacce0893dc8d91113b904bd531e (patch) | |
tree | 51a34367eb3184d5c45ee84f0e5be0bf9d873efa /drivers/net/wireless/mwifiex/txrx.c | |
parent | 7762bb02ce13c191e0a2da159bcb8d9b374b88c4 (diff) |
mwifiex: remove redundant local variables and comments
Remove some local variables (mainly function return values)
that are used only once. Also, one dummy function and some
wordy comments are removed.
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@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/txrx.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/txrx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwifiex/txrx.c b/drivers/net/wireless/mwifiex/txrx.c index f06923cb1c4b..ce772e078db8 100644 --- a/drivers/net/wireless/mwifiex/txrx.c +++ b/drivers/net/wireless/mwifiex/txrx.c | |||
@@ -36,7 +36,6 @@ | |||
36 | int mwifiex_handle_rx_packet(struct mwifiex_adapter *adapter, | 36 | int mwifiex_handle_rx_packet(struct mwifiex_adapter *adapter, |
37 | struct sk_buff *skb) | 37 | struct sk_buff *skb) |
38 | { | 38 | { |
39 | int ret = 0; | ||
40 | struct mwifiex_private *priv = | 39 | struct mwifiex_private *priv = |
41 | mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); | 40 | mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); |
42 | struct rxpd *local_rx_pd; | 41 | struct rxpd *local_rx_pd; |
@@ -50,9 +49,8 @@ int mwifiex_handle_rx_packet(struct mwifiex_adapter *adapter, | |||
50 | priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); | 49 | priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); |
51 | 50 | ||
52 | rx_info->bss_index = priv->bss_index; | 51 | rx_info->bss_index = priv->bss_index; |
53 | ret = mwifiex_process_sta_rx_packet(adapter, skb); | ||
54 | 52 | ||
55 | return ret; | 53 | return mwifiex_process_sta_rx_packet(adapter, skb); |
56 | } | 54 | } |
57 | EXPORT_SYMBOL_GPL(mwifiex_handle_rx_packet); | 55 | EXPORT_SYMBOL_GPL(mwifiex_handle_rx_packet); |
58 | 56 | ||