From: Melchior FRANZ Date: Wed, 22 Dec 2010 12:55:24 +0000 (+0100) Subject: USB: DL100B webmail notifier: initialize return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=952eca0a95e27660f7a56a7186b9bd09d791ced4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: DL100B webmail notifier: initialize return value If case of an unknown usb_device_id->driver_info (which could only occur if the info got corrupted somewhere outside the usbled driver), a debug message depended on an uninitialized value. This was harmless, but ugly, and gets fixed with this patch. Signed-off-by: Melchior FRANZ Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/usbled.c b/drivers/usb/misc/usbled.c index 1732d9bc097e..1616ad1793a4 100644 --- a/drivers/usb/misc/usbled.c +++ b/drivers/usb/misc/usbled.c @@ -45,7 +45,7 @@ struct usb_led { static void change_color(struct usb_led *led) { - int retval; + int retval = 0; unsigned char *buffer; buffer = kmalloc(8, GFP_KERNEL);