linux/drivers/staging/rtl8192u
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
..
ieee80211 Staging: rtl8192u: Fix space issues before '(' and after ')' 2015-03-26 10:35:33 +01:00
authors
changes
copying staging: rtl8192u: Fixed trailing whitespace in copying 2014-09-28 23:39:27 -04:00
Kconfig
Makefile staging: rtl8192u: remove unused define USB_RX_AGGREGATION_SUPPORT 2014-08-16 12:23:10 -07:00
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c Staging: rtl8192u: Bool tests don't need comparisons 2015-03-16 15:56:46 +01:00
r819xU_firmware.h staging: rtl8192u: Add space after enum definition 2014-10-20 10:29:15 +08:00
r819xU_phy.c Staging: rtl8192u: Remove unnecessary spaces 2015-03-20 13:11:45 +01:00
r819xU_phy.h
r819xU_phyreg.h staging:r819xU: coding style: Fixed commenting style 2014-08-16 12:23:15 -07:00
r8180_93cx6.c staging:r8180: coding style: Fixed commenting style 2014-08-01 14:42:52 -07:00
r8180_93cx6.h staging:r8180: coding style: Fixed too long lines 2014-08-01 14:42:52 -07:00
r8190_rtl8256.c Staging: rtl8192u: Simplify if condition. 2015-02-26 13:46:35 -08:00
r8190_rtl8256.h Staging: rtl8192u: Fix line over 80 characters 2015-03-01 17:07:05 -08:00
r8192U_core.c Staging: rtl8192u: Remove function prototype from .c file 2015-03-23 22:43:21 +01:00
r8192U_dm.c Staging: rtl8192u: Rename struct to avoid CamelCase 2015-03-18 10:32:39 +01:00
r8192U_dm.h Staging: rtl8192u: Rename struct to avoid CamelCase 2015-03-18 10:32:39 +01:00
r8192U_hw.h drivers: staging: rtl8192u: Fix "space required before that '*'" errors 2014-09-08 13:59:25 -07:00
r8192U_wx.c Staging: rtl8192u: Simplify if condition 2015-03-16 16:20:26 +01:00
r8192U_wx.h Staging: rtl8192u: Fix comments 2015-03-01 17:07:05 -08:00
r8192U.h Staging: rtl8192u: Remove TRUE and FALSE macros 2015-03-01 17:04:43 -08:00