kernel-ark/drivers/staging/hv
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
..
tools 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
blkvsc_drv.c Staging: hv: Get rid of IDE details from blkvsc_drv.c 2011-04-25 16:22:58 -07:00
channel_mgmt.c Staging: merge 2.6.39-rc3 into staging-next 2011-04-13 12:14:05 -07:00
channel_mgmt.h staging/hv: add missing include causing build error 2011-03-09 16:01:30 -08:00
channel.c Staging: merge 2.6.39-rc3 into staging-next 2011-04-13 12:14:05 -07:00
channel.h Staging: hv: replaced __attribute((packed)) with __packed 2011-02-09 12:11:54 -08:00
connection.c hv: pass u32 to process_chn_event() 2011-04-20 13:40:34 -07:00
hv_api.h Fix common misspellings 2011-03-31 11:26:23 -03:00
hv_kvp.c staging: hv: Replaced DPRINT and printk with native functions in hv_utils 2011-04-04 22:03:08 -07:00
hv_kvp.h Fix common misspellings 2011-03-31 11:26:23 -03:00
hv_mouse.c Staging: merge 2.6.39-rc3 into staging-next 2011-04-13 12:14:05 -07:00
hv_timesource.c staging: hv: Replaced printk with pr_info in hv_timesource 2011-04-04 22:03:08 -07:00
hv_util.c staging: Remove unnecessary semicolons when switch (foo) {...}; 2011-04-25 16:58:35 -07:00
hv.c Staging: merge 2.6.39-rc3 into staging-next 2011-04-13 12:14:05 -07:00
hv.h
Kconfig Staging: hv: enable mouse driver to build 2011-03-02 20:15:14 -05:00
logging.h Staging: hv: Remove osd layer 2011-02-18 13:11:03 -08:00
Makefile Staging: hv: Move the contents of blkvsc.c to blkvsc_drv.c 2011-04-04 21:50:44 -07:00
netvsc_api.h
netvsc_drv.c Staging: convert hv network driver to hw_features 2011-04-20 13:43:16 -07:00
netvsc.c staging: hv: convert function name NetVscDisconnectFromVsp to lower case 2011-04-25 16:13:28 -07:00
netvsc.h Staging: hv: Use native wait primitives 2011-02-18 13:11:03 -08:00
ring_buffer.c staging: hv: Replace DPRINT with natives in hv_vmbus 2011-04-04 22:03:07 -07:00
ring_buffer.h Staging: hv: replaced __attribute((packed)) with __packed 2011-02-09 12:11:54 -08:00
rndis_filter.c Staging: merge 2.6.39-rc3 into staging-next 2011-04-13 12:14:05 -07:00
rndis_filter.h
rndis.h
storvsc_api.h Staging: hv: Introduce a function to map channel properties onto block device info 2011-04-25 16:22:58 -07:00
storvsc_drv.c Staging: hv: Cleanup storvsc_remove() 2011-04-25 16:22:55 -07:00
storvsc.c Staging: hv: Get rid of IDE details from blkvsc_drv.c 2011-04-25 16:22:58 -07:00
TODO
utils.h Staging: hv: replaced __attribute((packed)) with __packed 2011-02-09 12:11:54 -08:00
version_info.h
vmbus_api.h Staging: hv: Remove the vm_device structure 2011-03-07 14:22:31 -08:00
vmbus_channel_interface.h Staging: hv: replaced __attribute((packed)) with __packed 2011-02-09 12:11:54 -08:00
vmbus_drv.c hv: make vmbus_loglevel writeable 2011-04-20 13:40:35 -07:00
vmbus_packet_format.h Staging: hv: replaced __attribute((packed)) with __packed 2011-02-09 12:11:54 -08:00
vmbus_private.h staging: hv: use sync_bitops when interacting with the hypervisor 2011-04-04 21:33:25 -07:00
vmbus.h Staging: hv: Remove the vm_device structure 2011-03-07 14:22:31 -08:00
vstorage.h Staging: hv: Add the inclusion guard for vstorage.h 2011-04-04 21:50:40 -07:00