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
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]>
  • Loading branch information
AlanStern authored and gregkh committed May 22, 2019
1 parent 53c7b63 commit 45457c0
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 @@ -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);
Expand Down

0 comments on commit 45457c0

Please sign in to comment.