mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
95cd17c9f3
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> |
||
---|---|---|
.. | ||
cx25821-alsa.c | ||
cx25821-audio-upstream.c | ||
cx25821-audio-upstream.h | ||
cx25821-audio.h | ||
cx25821-biffuncs.h | ||
cx25821-cards.c | ||
cx25821-core.c | ||
cx25821-gpio.c | ||
cx25821-gpio.h | ||
cx25821-i2c.c | ||
cx25821-medusa-defines.h | ||
cx25821-medusa-reg.h | ||
cx25821-medusa-video.c | ||
cx25821-medusa-video.h | ||
cx25821-reg.h | ||
cx25821-sram.h | ||
cx25821-video-upstream-ch2.c | ||
cx25821-video-upstream-ch2.h | ||
cx25821-video-upstream.c | ||
cx25821-video-upstream.h | ||
cx25821-video.c | ||
cx25821-video.h | ||
cx25821.h | ||
Kconfig | ||
Makefile | ||
README |
Todo: - checkpatch.pl cleanups - sparse cleanups Please send patches to linux-media@vger.kernel.org