From: Mariusz Kozlowski Date: Tue, 3 Mar 2009 18:38:31 +0000 (+0100) Subject: Staging: comedi: usbduxfast: remove .bss variable initialization X-Git-Tag: Ubuntu-5.13.0-19.19~36642^2~315 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=38c39e43f90fa7ab891a2590a59497fe0a10cee2;p=mirror_ubuntu-jammy-kernel.git Staging: comedi: usbduxfast: remove .bss variable initialization This patch removes explicit zeroing of usbduxfastsub 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 --- diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c index 2c888d1f3afc..1712f1db5a92 100644 --- a/drivers/staging/comedi/drivers/usbduxfast.c +++ b/drivers/staging/comedi/drivers/usbduxfast.c @@ -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)); - } } /*