From: Rickard Strandqvist Date: Sun, 1 Jun 2014 13:43:19 +0000 (+0200) Subject: usb: class: usbtmc.c: Cleaning up uninitialized variables X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab53eb97369a4fb19c3ba7b827b949c1015bc948;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git usb: class: usbtmc.c: Cleaning up uninitialized variables There is a risk that the variable will be used without being initialized. This was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c index 103a6e9ee49d..ec978408a2ee 100644 --- a/drivers/usb/class/usbtmc.c +++ b/drivers/usb/class/usbtmc.c @@ -715,7 +715,7 @@ static int usbtmc_ioctl_clear(struct usbtmc_device_data *data) u8 *buffer; int rv; int n; - int actual; + int actual = 0; int max_size; dev = &data->intf->dev;