diff options
| author | Amitoj Kaur Chawla <[email protected]> | 2015-04-02 23:01:04 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-04-03 11:10:27 +0200 |
| commit | 59f084070c96f777f977ebd58dc934b9d2a1d95b (patch) | |
| tree | 43d82c65fe91cd47c6b1361681b9052274a5b208 /tools/perf/scripts/python | |
| parent | e261e69e2d16b69eb712123b9e73bac50282b6a7 (diff) | |
Staging: sm750fb: Remove zero testing pointer typed value
Removes variable comparison with 0.
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions