diff options
author | Janani Ravichandran <janani.rvchndrn@gmail.com> | 2016-02-24 04:06:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-12 09:09:09 +0300 |
commit | 037f741673e0822adcb2bd3bcbd692a148da756a (patch) | |
tree | 1505f1f3ce0b9f7c287352b1ac3420e9262a3751 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 7e43d4d255588360d5cf7a2113babd9d9d34465e (diff) | |
download | linux-037f741673e0822adcb2bd3bcbd692a148da756a.tar.xz |
staging: rdma: hfi1: Do not use | with a variable with value 0
mr->lkey has a value equal to 0. There is no need to combine it with
other things with | as for any value x, 0|x is always x.
Semantic patch used:
@@
expression x, e, e1;
statement S;
@@
if (x == 0) {
... when != x = e1
when != while(...) S
when != for(...;...;...) S
(
* x |= e
|
* x | e
)
... when any
}
Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions