aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/siano
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2019-05-21 11:38:07 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-22 14:25:34 +0200
commit45457c01171fd1488a7000d1751c06ed8560ee38 (patch)
tree0edcf1733405ad989c0c4e643580811c17c672ed /drivers/media/usb/siano
parentUSB: rio500: update Documentation (diff)
downloadlinux-dev-45457c01171fd1488a7000d1751c06ed8560ee38.tar.xz
linux-dev-45457c01171fd1488a7000d1751c06ed8560ee38.zip
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. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Reported-by: kbuild test robot <lkp@intel.com> CC: <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/usb/siano')
-rw-r--r--drivers/media/usb/siano/smsusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/siano/smsusb.c b/drivers/media/usb/siano/smsusb.c
index 27ad14a3f831..59b3c124b49d 100644
--- a/drivers/media/usb/siano/smsusb.c
+++ b/drivers/media/usb/siano/smsusb.c
@@ -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);