diff options
| author | Srishti Sharma <srishtishar@gmail.com> | 2017-10-08 01:27:05 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-18 15:55:09 +0200 |
| commit | 69af5d92da20f9e0487f33623627e5b9068dfd5c (patch) | |
| tree | e27191ac4022eefdcf5c087be2d57bd75658378e /tools/perf/scripts/python/stackcollapse.py | |
| parent | staging: rtlwifi: phydm: Remove useless parentheses (diff) | |
| download | linux-69af5d92da20f9e0487f33623627e5b9068dfd5c.tar.gz linux-69af5d92da20f9e0487f33623627e5b9068dfd5c.zip | |
Staging: pi433: Fix the position of brace after if
Fix the position of the brace after if when it is on the next line.
Done using the following semantic patch by coccinelle.
@r1@
position p1, p2;
@@
if(...)@p1 {@p2
...
}
@script: python r2@
p1 << r1.p1;
p2 << r1.p2;
@@
l1 = int (p1[0].line)
l2 = int (p2[0].line)
c1 = int (p1[0].column_end)
c2 = int (p2[0].column)
if l1 == l2 and c1+1 == c2:
cocci.include_match(False)
@r3@
position r1.p1, r1.p2;
@@
if(...
- )@p1
-{@p2
+) {
...
}
Signed-off-by: Srishti Sharma <srishtishar@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
