diff options
| author | Gargi Sharma <[email protected]> | 2017-02-27 10:57:50 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-03-06 09:17:07 +0100 |
| commit | eb1397d16fe7733321d99b5f331a49167478b952 (patch) | |
| tree | d9bd4fe17e2cb2de9725e7768c80c4ad77883843 /tools/perf/scripts/python/bin | |
| parent | 483b10084d5d301089e6ad9e16a24cf501c5d253 (diff) | |
staging: rtl8192u: Remove ternary operator
Relational and logical operators evaluate to either true or false.
Lines with ternary operators were found using coccinelle script. In a
few cases using logical && operator would suffice. Hence those were
changed to improve readability.
Coccinelle Script:
@r@
expression A,B;
symbol true,false;
binary operator b = {==,!=,&&,||,>=,<=,>,<};
@@
- (A b B) ? true : false
+ A b B
Signed-off-by: Gargi Sharma <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions