mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-29 23:12:23 +00:00
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>
This commit is contained in:
parent
e57795a1a7
commit
84cdbf0afe
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user