linux-hardened/drivers/staging/rtl8712
Joe Perches b0b0fb0fd5 staging: Remove unnecessary semicolons when while (foo) {...};
Done via perl script:

$ cat remove_semi_while.pl
my $match_balanced_parentheses = qr/(\((?:[^\(\)]++|(?-1))*\))/;
my $match_balanced_braces      = qr/(\{(?:[^\{\}]++|(?-1))*\})/;

foreach my $file (@ARGV) {
    my $f;
    my $text;
    my $oldtext;

    next if ((-d $file));

    open($f, '<', $file)
	or die "$P: Can't open $file for read\n";
    $oldtext = do { local($/) ; <$f> };
    close($f);

    next if ($oldtext eq "");

    $text = $oldtext;

    my $count = 0;
    do {
	$count = 0;
	$count += $text =~ s@\b(while\s*${match_balanced_parentheses}\s*)${match_balanced_braces}\s*;@"$1$3"@egx;
    } while ($count > 0);

    if ($text ne $oldtext) {
	my $newfile = $file;

	open($f, '>', $newfile)
	    or die "$P: Can't open $newfile for write\n";
	print $f $text;
	close($f);
    }
}

$

One false positive removed.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-04-25 16:58:34 -07:00
..
basic_types.h
big_endian.h
drv_types.h staging: r8712u: Add module parameter to disable turbo mode 2010-08-31 10:59:52 -07:00
ethernet.h
generic.h
hal_init.c Staging: Merge branch 'staging-next' into 2.6.38-rc3 2011-02-02 13:35:58 -08:00
ieee80211.c
ieee80211.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
if_ether.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
ip.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
Kconfig staging: r8712u: Firmware changes for driver 2011-01-21 12:23:55 -08:00
little_endian.h
Makefile Staging: rtl8712: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:45 -07:00
mlme_linux.c
mlme_osdep.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
mp_custom_oid.h
os_intfs.c staging: r8712u: Add module parameter to disable turbo mode 2010-08-31 10:59:52 -07:00
osdep_intf.h
osdep_service.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
recv_linux.c
recv_osdep.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_byteorder.h
rtl871x_cmd.c staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_cmd.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_debug.h
rtl871x_eeprom.c
rtl871x_eeprom.h
rtl871x_event.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_ht.h
rtl871x_io.c Staging: rtl8712: redundant null check before kfree() 2011-04-20 13:45:59 -07:00
rtl871x_io.h
rtl871x_ioctl.h
rtl871x_ioctl_linux.c staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_ioctl_rtl.c staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_ioctl_rtl.h
rtl871x_ioctl_set.c
rtl871x_ioctl_set.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_led.h Fix common misspellings 2011-03-31 11:26:23 -03:00
rtl871x_mlme.c Fix common misspellings 2011-03-31 11:26:23 -03:00
rtl871x_mlme.h Fix common misspellings 2011-03-31 11:26:23 -03:00
rtl871x_mp.c staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_mp.h
rtl871x_mp_ioctl.c staging: r8712u: Fix sparse message 2011-01-21 12:22:19 -08:00
rtl871x_mp_ioctl.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_mp_phy_regdef.h Fix common misspellings 2011-03-31 11:26:23 -03:00
rtl871x_pwrctrl.c staging: rtl8712: rtl871x_pwrctrl.c remove one to many l's in the word. 2011-02-28 18:24:48 -08:00
rtl871x_pwrctrl.h
rtl871x_recv.c staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_recv.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_rf.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_security.c
rtl871x_security.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl871x_sta_mgt.c
rtl871x_wlan_sme.h
rtl871x_xmit.c Staging: rtl8712: redundant null check before kfree() 2011-04-20 13:45:59 -07:00
rtl871x_xmit.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl8712_bitdef.h
rtl8712_cmd.c
rtl8712_cmd.h
rtl8712_cmdctrl_bitdef.h
rtl8712_cmdctrl_regdef.h
rtl8712_debugctrl_bitdef.h
rtl8712_debugctrl_regdef.h
rtl8712_edcasetting_bitdef.h
rtl8712_edcasetting_regdef.h
rtl8712_efuse.c drivers/staging: Remove unnecessary semicolons 2010-11-16 12:06:47 -08:00
rtl8712_efuse.h
rtl8712_event.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl8712_fifoctrl_bitdef.h
rtl8712_fifoctrl_regdef.h
rtl8712_gp_bitdef.h
rtl8712_gp_regdef.h
rtl8712_hal.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl8712_interrupt_bitdef.h
rtl8712_io.c
rtl8712_led.c staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl8712_macsetting_bitdef.h
rtl8712_macsetting_regdef.h
rtl8712_powersave_bitdef.h
rtl8712_powersave_regdef.h
rtl8712_ratectrl_bitdef.h
rtl8712_ratectrl_regdef.h
rtl8712_recv.c staging: Remove unnecessary semicolons when while (foo) {...}; 2011-04-25 16:58:34 -07:00
rtl8712_recv.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rtl8712_regdef.h
rtl8712_security_bitdef.h
rtl8712_spec.h
rtl8712_syscfg_bitdef.h
rtl8712_syscfg_regdef.h
rtl8712_timectrl_bitdef.h
rtl8712_timectrl_regdef.h
rtl8712_wmac_bitdef.h
rtl8712_wmac_regdef.h
rtl8712_xmit.c drivers/staging: Remove unnecessary semicolons 2010-11-16 12:06:47 -08:00
rtl8712_xmit.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
sta_info.h
swab.h
TODO staging: r8712u: Switch driver to use external firmware from linux-firmware 2011-01-21 12:23:30 -08:00
usb_halinit.c Fix common misspellings 2011-03-31 11:26:23 -03:00
usb_intf.c staging: r8712u: Add new device IDs 2011-01-25 04:53:59 +08:00
usb_ops.c
usb_ops.h
usb_ops_linux.c
usb_osintf.h
usb_vendor_req.h
wifi.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
wlan_bssdef.h staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
xmit_linux.c
xmit_osdep.h