aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2009-03-03 19:38:34 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:53:53 -0700
commit84cdbf0afe4f391480087dec613c7f8aff5d0496 (patch)
treeaadf5d4be1a5145a203f1e389cec15272ed76f7b
parente57795a1a7ebf8ac91cfb82070cf19bf01ee4ac0 (diff)
Staging: comedi: usbdux: remove .bss variable initialization
This patch removes explicit zeroing of usbduxsub variable on init because it is in .bss section. Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Cc: Bernd Porr <BerndPorr@f2s.com> Cc: Ian Abbott <abbotti@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Cc: David Schleef <ds@schleef.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/drivers/usbdux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/usbdux.c b/drivers/staging/comedi/drivers/usbdux.c
index dc6059b6ca4..c215a926421 100644
--- a/drivers/staging/comedi/drivers/usbdux.c
+++ b/drivers/staging/comedi/drivers/usbdux.c
@@ -2917,10 +2917,8 @@ static void init_usb_devices(void)
/* all devices entries are invalid to begin with */
/* they will become valid by the probe function */
/* and then finally by the attach-function */
- for (index = 0; index < NUMUSBDUX; index++) {
- memset(&(usbduxsub[index]), 0x00, sizeof(usbduxsub[index]));
+ for (index = 0; index < NUMUSBDUX; index++)
init_MUTEX(&(usbduxsub[index].sem));
- }
}
/* Table with the USB-devices: just now only testing IDs */