OSDN Git Service

Staging: comedi: usbduxfast: remove .bss variable initialization
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Tue, 3 Mar 2009 18:38:31 +0000 (19:38 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:53 +0000 (14:53 -0700)
This patch removes explicit zeroing of usbduxfastsub
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>
drivers/staging/comedi/drivers/usbduxfast.c

index 2c888d1..1712f1d 100644 (file)
@@ -1875,11 +1875,8 @@ static void __init init_usb_devices(void)
         * they will become valid by the probe function
         * and then finally by the attach-function
         */
-       for (index = 0; index < NUMUSBDUXFAST; index++) {
-               memset(&(usbduxfastsub[index]), 0x00,
-                       sizeof(usbduxfastsub[index]));
+       for (index = 0; index < NUMUSBDUXFAST; index++)
                init_MUTEX(&(usbduxfastsub[index].sem));
-       }
 }
 
 /*