From 84cdbf0afe4f391480087dec613c7f8aff5d0496 Mon Sep 17 00:00:00 2001 From: Mariusz Kozlowski Date: Tue, 3 Mar 2009 19:38:34 +0100 Subject: [PATCH] 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 Cc: Bernd Porr Cc: Ian Abbott Cc: Frank Mori Hess Cc: David Schleef Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbdux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/usbdux.c b/drivers/staging/comedi/drivers/usbdux.c index dc6059b6ca43..c215a9264216 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 */ -- 2.20.1