Commit 952eca0a authored by Melchior FRANZ's avatar Melchior FRANZ Committed by Greg Kroah-Hartman

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: default avatarMelchior FRANZ <mfranz@aon.at>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent baab93af
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment