mwifiex: Change variable type to bool
authorPeter Senna Tschudin <peter.senna@gmail.com>
Sat, 21 Sep 2013 22:27:43 +0000 (00:27 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 10 Oct 2013 17:41:37 +0000 (13:41 -0400)
commitc856197d6e93907c0493bfecb4eb621318028e26
tree8cbee671c0c6c7f0563b19f6e89f32dc972ea0f5
parente9517fecf2ec6497fccb2c14ea0c014bda8b113a
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>
drivers/net/wireless/mwifiex/cmdevt.c
drivers/net/wireless/mwifiex/join.c
drivers/net/wireless/mwifiex/sta_cmd.c
drivers/net/wireless/mwifiex/wmm.c