mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Reported-by: kbuild test robot <[email protected]> CC: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
53c7b63f79
commit
45457c0117
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue