From: Oliver Neukum Date: Tue, 30 Jun 2009 07:44:24 +0000 (+0200) Subject: USB: fix uninitialised variable in ti_do_download X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87ea8c887905d8b13ae90b537117592ed027632a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git USB: fix uninitialised variable in ti_do_download Signed-off-by: Oliver Neukum Cc: stable Cc: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 35d8852eeff..14971a92699 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c @@ -1657,7 +1657,7 @@ static int ti_do_download(struct usb_device *dev, int pipe, u8 cs = 0; int done; struct ti_firmware_header *header; - int status; + int status = 0; int len; for (pos = sizeof(struct ti_firmware_header); pos < size; pos++)