kernel-fxtec-pro1x/drivers/staging/cx25821
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
..
cx25821-alsa.c [media] staging/cx25721: serialize access to devlist 2011-03-21 20:32:41 -03:00
cx25821-audio-upstream.c staging: cx25821: Remove NULL check before kfree 2011-03-14 11:57:31 -07:00
cx25821-audio-upstream.h
cx25821-audio.h
cx25821-biffuncs.h
cx25821-cards.c [media] drivers/staging/cx25821: Use pr_fmt and pr_<level> 2010-12-29 08:16:46 -02:00
cx25821-core.c [media] staging/cx25721: serialize access to devlist 2011-03-21 20:32:41 -03:00
cx25821-gpio.c
cx25821-gpio.h
cx25821-i2c.c [media] drivers/staging/cx25821: Use pr_fmt and pr_<level> 2010-12-29 08:16:46 -02:00
cx25821-medusa-defines.h
cx25821-medusa-reg.h
cx25821-medusa-video.c [media] drivers/staging/cx25821: Use pr_fmt and pr_<level> 2010-12-29 08:16:46 -02:00
cx25821-medusa-video.h
cx25821-reg.h
cx25821-sram.h
cx25821-video-upstream-ch2.c staging: cx25821: Remove NULL check before kfree 2011-03-14 11:57:31 -07:00
cx25821-video-upstream-ch2.h
cx25821-video-upstream.c staging: cx25821: Remove NULL check before kfree 2011-03-14 11:57:31 -07:00
cx25821-video-upstream.h
cx25821-video.c staging: Remove unnecessary semicolons when switch (foo) {...}; 2011-04-25 16:58:35 -07:00
cx25821-video.h [media] V4L: remove V4L1 compatibility mode 2010-12-29 08:17:07 -02:00
cx25821.h [media] staging/cx25721: serialize access to devlist 2011-03-21 20:32:41 -03:00
Kconfig [media] staging/cx25721: serialize access to devlist 2011-03-21 20:32:41 -03:00
Makefile
README

Todo:
	- checkpatch.pl cleanups
	- sparse cleanups

Please send patches to linux-media@vger.kernel.org