Amitoj Kaur Chawla
5c7d08c32d
Staging: rtl8712: Remove zero-testing pointer typed value
Removes variable comparison with 0 by using !. Done using following
coccinelle script.
@ disable is_zero,isnt_zero @
expression *E;
expression E1,f;
@@
E = f(...)
<...
(
- E == 0
+ !E
|
- E != 0
+ E
|
- 0 == E
+ !E
|
- 0 != E
+ E
)
...>
?E = E1
@ disable is_zero,isnt_zero @
expression *E;
@@
(
E ==
- 0
+ NULL
|
E !=
- 0
+ NULL
|
- 0
+ NULL
== E
|
- 0
+ NULL
!= E
)
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-04-01 17:26:58 +02:00
..
2015-02-07 17:39:50 +08:00
2015-03-09 13:37:22 +01:00
2014-10-29 17:37:26 +08:00
2015-03-06 09:54:34 -08:00
2015-03-16 15:46:07 +01:00
2015-03-16 15:46:07 +01:00
2015-03-06 09:54:34 -08:00
2015-01-25 19:59:18 +08:00
2015-03-16 15:46:07 +01:00
2015-02-26 15:23:47 -08:00
2014-10-20 10:29:19 +08:00
2014-09-28 22:41:23 -04:00
2015-04-01 17:26:58 +02:00
2015-04-01 17:26:58 +02:00
2014-09-23 08:14:36 -07:00
2015-03-16 15:48:20 +01:00
2015-01-25 19:59:19 +08:00
2015-01-17 14:10:03 -08:00
2015-03-06 15:22:43 -08:00
2014-09-23 08:04:57 -07:00
2015-03-16 15:46:07 +01:00
2015-01-17 14:20:25 -08:00
2015-02-26 15:08:36 -08:00
2014-10-29 17:37:26 +08:00
2015-04-01 17:26:58 +02:00
2015-03-06 09:54:34 -08:00
2015-03-16 15:46:07 +01:00
2015-03-16 15:46:07 +01:00
2015-02-26 15:23:47 -08:00
2015-01-17 14:20:25 -08:00
2014-10-29 17:37:26 +08:00
2015-01-17 14:20:25 -08:00
2014-09-28 22:41:23 -04:00
2015-03-16 15:46:07 +01:00
2015-03-06 15:22:43 -08:00
2014-09-28 22:41:23 -04:00
2015-01-17 14:20:25 -08:00
2015-02-07 17:15:43 +08:00
2014-10-29 17:37:26 +08:00
2015-03-16 15:48:20 +01:00
2014-10-29 17:37:26 +08:00