Skip to content

Commit

Permalink
media: usb: siano: Fix false-positive "uninitialized variable" warning
Browse files Browse the repository at this point in the history
commit 45457c0 upstream.

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 <[email protected]>
Reported-by: kbuild test robot <[email protected]>
CC: <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Change-Id: I90c05291e510ff33457b8a2877d264ff3dd2e6fc
  • Loading branch information
AlanStern authored and Zile995 committed Jun 18, 2019
1 parent 6a19e15 commit 10da05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/usb/siano/smsusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static int smsusb_init_device(struct usb_interface *intf, int board_id)
struct smsdevice_params_t params;
struct smsusb_device_t *dev;
int i, rc;
int in_maxp;
int in_maxp = 0;

/* create device object */
dev = kzalloc(sizeof(struct smsusb_device_t), GFP_KERNEL);
Expand Down

0 comments on commit 10da05a

Please sign in to comment.