]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Staging: comedi: usbdux: remove .bss variable initialization
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Tue, 3 Mar 2009 18:38:34 +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 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>
drivers/staging/comedi/drivers/usbdux.c

index dc6059b6ca434972c95815a39552eaa5f47df880..c215a9264216c00e2bce711b527f17ba09563b93 100644 (file)
@@ -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 */