diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2011-05-03 23:11:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-05 14:59:16 -0400 |
commit | 270e58e8898c8be40451ebee45b6c9b5bd5db04b (patch) | |
tree | 4dd71a0e18a3f5528af59fcaebc61d98377792e5 /drivers/net/wireless/mwifiex/11n.c | |
parent | 57f16b5da03784d1660133fbec7281ea5735da69 (diff) |
mwifiex: remove unnecessary variable initialization
Skip initialization of local variables with some default values
if the values are not going to be used further down the code path.
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/11n.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/11n.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwifiex/11n.c b/drivers/net/wireless/mwifiex/11n.c index 1d294cfa6c9b..916183d39009 100644 --- a/drivers/net/wireless/mwifiex/11n.c +++ b/drivers/net/wireless/mwifiex/11n.c | |||
@@ -187,7 +187,7 @@ int mwifiex_ret_11n_addba_req(struct mwifiex_private *priv, | |||
187 | */ | 187 | */ |
188 | int mwifiex_ret_11n_cfg(struct host_cmd_ds_command *resp, void *data_buf) | 188 | int mwifiex_ret_11n_cfg(struct host_cmd_ds_command *resp, void *data_buf) |
189 | { | 189 | { |
190 | struct mwifiex_ds_11n_tx_cfg *tx_cfg = NULL; | 190 | struct mwifiex_ds_11n_tx_cfg *tx_cfg; |
191 | struct host_cmd_ds_11n_cfg *htcfg = &resp->params.htcfg; | 191 | struct host_cmd_ds_11n_cfg *htcfg = &resp->params.htcfg; |
192 | 192 | ||
193 | if (data_buf) { | 193 | if (data_buf) { |
@@ -274,7 +274,7 @@ int mwifiex_cmd_amsdu_aggr_ctrl(struct host_cmd_ds_command *cmd, | |||
274 | int mwifiex_ret_amsdu_aggr_ctrl(struct host_cmd_ds_command *resp, | 274 | int mwifiex_ret_amsdu_aggr_ctrl(struct host_cmd_ds_command *resp, |
275 | void *data_buf) | 275 | void *data_buf) |
276 | { | 276 | { |
277 | struct mwifiex_ds_11n_amsdu_aggr_ctrl *amsdu_aggr_ctrl = NULL; | 277 | struct mwifiex_ds_11n_amsdu_aggr_ctrl *amsdu_aggr_ctrl; |
278 | struct host_cmd_ds_amsdu_aggr_ctrl *amsdu_ctrl = | 278 | struct host_cmd_ds_amsdu_aggr_ctrl *amsdu_ctrl = |
279 | &resp->params.amsdu_aggr_ctrl; | 279 | &resp->params.amsdu_aggr_ctrl; |
280 | 280 | ||
@@ -461,8 +461,7 @@ mwifiex_cfg_tx_buf(struct mwifiex_private *priv, | |||
461 | struct mwifiex_bssdescriptor *bss_desc) | 461 | struct mwifiex_bssdescriptor *bss_desc) |
462 | { | 462 | { |
463 | u16 max_amsdu = MWIFIEX_TX_DATA_BUF_SIZE_2K; | 463 | u16 max_amsdu = MWIFIEX_TX_DATA_BUF_SIZE_2K; |
464 | u16 tx_buf = 0; | 464 | u16 tx_buf, curr_tx_buf_size = 0; |
465 | u16 curr_tx_buf_size = 0; | ||
466 | 465 | ||
467 | if (bss_desc->bcn_ht_cap) { | 466 | if (bss_desc->bcn_ht_cap) { |
468 | if (le16_to_cpu(bss_desc->bcn_ht_cap->cap_info) & | 467 | if (le16_to_cpu(bss_desc->bcn_ht_cap->cap_info) & |