diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2013-09-22 00:27:43 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-10 13:41:37 -0400 |
commit | c856197d6e93907c0493bfecb4eb621318028e26 (patch) | |
tree | 8cbee671c0c6c7f0563b19f6e89f32dc972ea0f5 /drivers/net/wireless/mwifiex/wmm.c | |
parent | e9517fecf2ec6497fccb2c14ea0c014bda8b113a (diff) | |
download | op-kernel-dev-c856197d6e93907c0493bfecb4eb621318028e26.zip op-kernel-dev-c856197d6e93907c0493bfecb4eb621318028e26.tar.gz |
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/wmm.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/wmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/wmm.c b/drivers/net/wireless/mwifiex/wmm.c index 2e8f9cd..8f8fea01 100644 --- a/drivers/net/wireless/mwifiex/wmm.c +++ b/drivers/net/wireless/mwifiex/wmm.c @@ -708,7 +708,7 @@ int mwifiex_ret_wmm_get_status(struct mwifiex_private *priv, { u8 *curr = (u8 *) &resp->params.get_wmm_status; uint16_t resp_len = le16_to_cpu(resp->size), tlv_len; - int valid = true; + bool valid = true; struct mwifiex_ie_types_data *tlv_hdr; struct mwifiex_ie_types_wmm_queue_status *tlv_wmm_qstatus; |