linux/drivers/staging
Joe Perches 9fc86028fa staging: Remove unnecessary semicolons when if (foo) {...};
Done via perl script:

$ cat remove_semi_if.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(if\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);
    }
}

$

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
..
altera-stapl [media] staging: altera-jtag needs delay.h 2011-03-31 18:49:34 -03:00
asus_oled
ath6kl ath6kl: fix operations for power management 2011-04-25 16:24:24 -07:00
bcm Fix common misspellings 2011-03-31 11:26:23 -03:00
brcm80211 staging: brcm80211: Add dhdsdio_chip_attach in dhd_sdio.c 2011-04-25 16:40:17 -07:00
comedi staging/comedi: remove German in-file changelog 2011-04-20 14:18:56 -07:00
cptm1217 Fix common misspellings 2011-03-31 11:26:23 -03:00
crystalhd staging: crystalhd: remove unused typedef bc_bool_t 2011-04-20 13:48:24 -07:00
cs5535_gpio staging: cs5535_gpio: check put_user() return code 2011-01-21 12:35:14 -08:00
cx25821 drivers/staging/cx25821/cx25821-video.c: introduce missing kfree 2011-04-20 14:11:47 -07:00
cxd2099 [media] ngene: Fix compilation when cxd2099 is not enabled 2011-03-21 20:31:48 -03:00
cxt1e1 Fix common misspellings 2011-03-31 11:26:23 -03:00
dt3155v4l [media] V4L: remove V4L1 compatibility mode 2010-12-29 08:17:07 -02:00
easycap staging/easycap: easycap_probe: drop unuzed variables 2011-04-20 18:08:08 -07:00
echo staging: echo: fix a typo ("overflow") 2011-03-02 16:03:59 -05:00
et131x Fix common misspellings 2011-03-31 11:26:23 -03:00
frontier
ft1000 staging:ft1000: Remove dead code in ft1000_hw.c 2011-04-20 13:48:24 -07:00
generic_serial Fix common misspellings 2011-03-31 11:26:23 -03:00
gma500 Staging: merge 2.6.39-rc3 into staging-next 2011-04-13 12:14:05 -07:00
go7007 Fix common misspellings 2011-03-31 11:26:23 -03:00
hv Staging: hv: Get rid of IDE details from blkvsc_drv.c 2011-04-25 16:22:58 -07:00
iio IIO: GYRO: IIO driver for Analog Devices Digital Output Gyroscope ADXRS450 2011-04-20 14:20:46 -07:00
intel_sst staging: Remove unnecessary semicolons when if (foo) {...}; 2011-04-25 16:58:34 -07:00
keucr staging/keucr: transport usb use pr_<level> 2011-04-20 13:55:03 -07:00
line6 staging: line6: Remove NULL check before kfree 2011-03-14 11:57:33 -07:00
lirc Fix common misspellings 2011-03-31 11:26:23 -03:00
msm Fix common misspellings 2011-03-31 11:26:23 -03:00
octeon Fix common misspellings 2011-03-31 11:26:23 -03:00
olpc_dcon Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-04-07 11:36:44 -07:00
panel
phison
pohmelfs Fix common misspellings 2011-03-31 11:26:23 -03:00
quatech_usb2 Fix common misspellings 2011-03-31 11:26:23 -03:00
quickstart Staging: quickstart: fixed coding style issues 2011-02-09 12:11:55 -08:00
rtl8187se Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-04-07 11:36:44 -07:00
rtl8192e Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-04-07 11:36:44 -07:00
rtl8192u Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-04-07 11:36:44 -07:00
rtl8712 staging: rtl8712: fixed coding style issues 2011-04-20 14:13:31 -07:00
rts_pstor Staging: rts_pstor: redundant null check before kfree() 2011-04-20 13:45:58 -07:00
sbe-2t3e3 Staging: sbe-2t3e3: redundant null check before kfree() 2011-04-20 13:45:57 -07:00
sep Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-04-07 11:36:44 -07:00
serqt_usb2 Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-03-16 15:19:35 -07:00
slicoss Fix common misspellings 2011-03-31 11:26:23 -03:00
sm7xx Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-04-07 11:36:44 -07:00
solo6x10 staging: Solo6x10: Changed solo6010* -> solo*, solo6x10* etc. 2011-02-18 12:37:04 -08:00
speakup Fix common misspellings 2011-03-31 11:26:23 -03:00
spectra Fix common misspellings 2011-03-31 11:26:23 -03:00
ste_rmi4 Fix common misspellings 2011-03-31 11:26:23 -03:00
tidspbridge Fix common misspellings 2011-03-31 11:26:23 -03:00
tm6000 Fix common misspellings 2011-03-31 11:26:23 -03:00
tty staging: istallion: fix arbitrary kernel memory reads/writes 2011-04-25 16:45:22 -07:00
usbip Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-04-07 11:36:44 -07:00
vme Fix common misspellings 2011-03-31 11:26:23 -03:00
vt6655 staging: Remove unnecessary semicolons when if (foo) {...}; 2011-04-25 16:58:34 -07:00
vt6656 staging: Remove unnecessary semicolons when if (foo) {...}; 2011-04-25 16:58:34 -07:00
westbridge Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2011-04-07 11:36:44 -07:00
winbond Staging: winbond: wb35tx.c: Fixed coding style 2011-04-20 13:48:25 -07:00
wlags49_h2 Fix common misspellings 2011-03-31 11:26:23 -03:00
wlags49_h25 Fix common misspellings 2011-03-31 11:26:23 -03:00
wlan-ng Fix common misspellings 2011-03-31 11:26:23 -03:00
xgifb Fix common misspellings 2011-03-31 11:26:23 -03:00
zcache staging: Allow sharing xvmalloc for zram and zcache 2011-02-23 14:02:56 -08:00
zram staging: Allow sharing xvmalloc for zram and zcache 2011-02-23 14:02:56 -08:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/lwfinger/linux-staging into staging-next 2011-04-25 16:55:53 -07:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/lwfinger/linux-staging into staging-next 2011-04-25 16:55:53 -07:00
staging.c