Haneen Mohammed
f53cb7b168
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 <hamohammed.sa@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-03-26 10:35:33 +01:00
..
2015-03-20 14:56:19 +01:00
2015-02-10 10:23:15 +00:00
2015-03-01 18:43:51 -08:00
2015-03-02 12:08:43 -05:00
2015-01-18 00:28:41 -05:00
2015-03-17 10:41:26 -07:00
2015-01-29 10:54:43 +02:00
2015-02-28 10:21:57 -08:00
2015-02-23 09:30:35 +02:00
2015-02-17 09:27:54 -08:00
2015-03-17 10:36:01 -07:00
2015-03-15 15:07:08 -07:00
2015-03-05 15:01:37 +01:00
2015-02-04 10:42:55 -08:00
2015-03-06 13:43:33 -08:00
2015-03-13 18:31:29 +01:00
2015-02-18 08:49:20 -08:00
2015-02-13 21:39:06 +01:00
2015-03-23 21:36:48 +01:00
2015-01-22 16:29:31 +05:30
2015-02-19 11:18:14 -08:00
2015-01-26 13:47:55 +09:00
2015-02-02 21:56:03 +01:00
2015-03-02 14:18:57 +01:00
2015-02-23 15:40:32 +01:00
2015-03-20 17:32:21 +10:00
2015-03-17 20:59:55 +01:00
2015-02-15 10:48:44 -08:00
2015-02-22 20:10:30 -08:00
2015-03-12 10:23:05 +01:00
2015-03-18 23:25:57 -04:00
2015-02-15 19:40:09 +01:00
2015-03-24 22:53:52 +01:00
2015-03-18 15:17:11 -04:00
2015-03-19 16:43:10 -07:00
2015-03-03 14:04:12 +01:00
2015-03-15 01:41:26 +00:00
2015-03-15 22:24:37 -04:00
2015-02-02 14:36:10 -08:00
2015-02-18 09:24:01 -08:00
2015-02-11 12:56:40 -08:00
2015-02-03 15:48:51 -08:00
2015-03-22 16:38:19 -07:00
2015-02-11 17:06:05 -08:00
2015-01-29 22:57:43 -06:00
2015-02-03 15:58:39 -08:00
2015-02-18 09:05:48 -08:00
2015-03-01 19:34:50 -08:00
2015-03-19 11:26:35 +01:00
2015-03-21 10:36:44 -07:00
2015-03-18 22:37:38 -04:00
2015-02-04 09:15:18 +01:00
2015-03-19 08:46:54 -05:00
2015-03-12 09:45:46 -07:00
2015-03-11 14:21:23 +01:00
2015-03-13 17:14:39 +05:30
2015-03-18 10:56:46 +01:00
2015-02-21 11:12:07 -08:00
2015-02-21 04:29:16 +01:00
2015-01-28 15:08:10 +01:00
2015-03-13 23:18:44 +01:00
2015-01-22 17:31:21 +11:00
2015-02-18 08:40:29 +01:00
2015-02-18 08:49:20 -08:00
2015-03-16 11:43:24 +00:00
2015-03-13 15:55:42 +10:30
2015-03-18 01:58:16 +01:00
2015-02-26 09:24:48 +01:00
2015-03-21 11:24:38 -07:00
2015-02-24 07:26:12 +09:00
2015-02-17 09:38:59 -08:00
2015-03-06 21:10:56 +00:00
2015-02-11 14:38:29 -08:00
2015-03-26 10:35:33 +01:00
2015-03-19 23:26:46 -07:00
2015-03-05 01:47:57 -04:00
2015-03-11 16:39:52 +01:00
2015-03-22 11:33:55 -07:00
2015-02-15 10:24:55 -08:00
2015-03-12 09:51:38 -06:00
2015-03-21 11:24:38 -07:00
2015-02-26 10:23:15 +02:00
2015-03-17 12:12:21 +10:30
2015-03-06 17:03:22 -08:00
2015-03-06 00:46:31 +01:00
2015-03-21 11:24:38 -07:00
2015-02-03 15:58:39 -08:00