kernel-fxtec-pro1x/drivers/staging/ath6kl
Joe Perches 95cd17c9f3 staging: Remove unnecessary semicolons when switch (foo) {...};
Done via perl script:

$ cat remove_semi_switch.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(switch\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:35 -07:00
..
bmi ath6kl: s|A_FREE|kfree|g 2011-04-04 22:58:02 -07:00
hif ath6kl: remove chatty debug messages on ath6kl driver ops 2011-04-04 22:58:17 -07:00
htc2 Staging: merge 2.6.39-rc3 into staging-next 2011-04-13 12:14:05 -07:00
include ath6kl: add the device ID on the data command packet 2011-04-25 16:24:24 -07:00
miscdrv Staging: merge 2.6.39-rc3 into staging-next 2011-04-13 12:14:05 -07:00
os/linux staging: Remove unnecessary semicolons when switch (foo) {...}; 2011-04-25 16:58:35 -07:00
reorder ath6kl: remove define ATH_AR6K_11N_SUPPORT 2011-04-04 22:58:07 -07:00
wlan ath6kl: remove dependency on LINUX and KERNEL_2_6 macros 2011-04-04 22:58:07 -07:00
wmi ath6kl: add the device ID on the data command packet 2011-04-25 16:24:24 -07:00
Kconfig ath6kl: remove all the wext and super extended private ioctl crap 2011-04-04 22:58:06 -07:00
Makefile ath6kl: use CONFIG_ATH6KL_ENABLE_COEXISTENCE 2011-04-04 22:58:13 -07:00
TODO staging: ath6kl: update TODO file / maintainers 2011-02-23 13:59:56 -08:00