diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2013-09-21 18:27:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-10 13:41:37 -0400 |
commit | c856197d6e93907c0493bfecb4eb621318028e26 (patch) | |
tree | 8cbee671c0c6c7f0563b19f6e89f32dc972ea0f5 /drivers/net/wireless/mwifiex/sta_cmd.c | |
parent | e9517fecf2ec6497fccb2c14ea0c014bda8b113a (diff) |
mwifiex: Change variable type to bool
The variables cancel_scan_cmd, enable_data, hs_activate and valid are
only assigned the values true and false. Change its type to bool.
The simplified semantic patch that find this problem is as
follows (http://coccinelle.lip6.fr/):
@exists@
type T;
identifier b;
@@
- T
+ bool
b = ...;
... when any
b = \(true\|false\)
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sta_cmd.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_cmd.c b/drivers/net/wireless/mwifiex/sta_cmd.c index c0268b597748..7d66018a2e33 100644 --- a/drivers/net/wireless/mwifiex/sta_cmd.c +++ b/drivers/net/wireless/mwifiex/sta_cmd.c | |||
@@ -327,7 +327,7 @@ mwifiex_cmd_802_11_hs_cfg(struct mwifiex_private *priv, | |||
327 | { | 327 | { |
328 | struct mwifiex_adapter *adapter = priv->adapter; | 328 | struct mwifiex_adapter *adapter = priv->adapter; |
329 | struct host_cmd_ds_802_11_hs_cfg_enh *hs_cfg = &cmd->params.opt_hs_cfg; | 329 | struct host_cmd_ds_802_11_hs_cfg_enh *hs_cfg = &cmd->params.opt_hs_cfg; |
330 | u16 hs_activate = false; | 330 | bool hs_activate = false; |
331 | 331 | ||
332 | if (!hscfg_param) | 332 | if (!hscfg_param) |
333 | /* New Activate command */ | 333 | /* New Activate command */ |