patch "media: usb: siano: Fix false-positive "uninitialized variable"" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
media: usb: siano: Fix false-positive "uninitialized variable"
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 45457c01171fd1488a7000d1751c06ed8560ee38 Mon Sep 17 00:00:00 2001
From: Alan Stern <[email protected]>
Date: Tue, 21 May 2019 11:38:07 -0400
Subject: media: usb: siano: Fix false-positive "uninitialized variable"
warning
GCC complains about an apparently uninitialized variable recently added to smsusb_init_device(). It's a false positive, but to silence the warning this patch adds a trivial initialization.
--- drivers/media/usb/siano/smsusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/siano/smsusb.c +1 -1
@@ -400,7 +400,7 @@ static int smsusb_init_device(struct usb_interface *intf, int board_id)struct smsusb_device_t *dev;void *mdev;int i, rc; -int in_maxp; +int in_maxp =0 ;/* create device object */ dev =kzalloc (sizeof (struct smsusb_device_t ),GFP_KERNEL );
Signature · 1 line
2.21.0