aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHaneen Mohammed <[email protected]>2015-03-25 08:09:59 +0300
committerGreg Kroah-Hartman <[email protected]>2015-03-26 10:35:33 +0100
commitf53cb7b16861f0bd474aab07b91c744758d4f1fd (patch)
tree1d19e27b49573b376e29e0929f429ba4d915191f /tools/perf/scripts/python/bin
parentdde48b99d23f3f2e0f016d297801e4d5f13297fa (diff)
Staging: rtl8192u: Fix space issues before '(' and after ')'
Space is required before the open and after the close parenthesis. This patch adds space after 'if' and before '{'. This was done with the help of the following Coccinelle script: @r@ expression E; position p1,p2,p3; @@ if@p1 (E) @p3{@p2 ... } @script:python@ p1 << r.p1; p2 << r.p2; p3 << r.p3; @@ l1 = int (p1[0].line) l2 = int (p2[0].line) l3 = int (p3[0].line) c1 = int (p1[0].column_end) c2 = int (p2[0].column) c3 = int (p3[0].column) if (l1 != l2): cocci.include_match(False) if (l2 == l3 and c3 + 2 == c2): cocci.include_match(False) @@ position r.p1,r.p2,r.p3; expression r.E; @@ -if@p1 (E) @p3{@p2 +if (E) { ... } Signed-off-by: Haneen Mohammed <[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