From: Haneen Mohammed Date: Wed, 25 Mar 2015 05:09:59 +0000 (+0300) Subject: Staging: rtl8192u: Fix space issues before '(' and after ')' X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f53cb7b16861f0bd474aab07b91c744758d4f1fd;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed