Skip to content
Snippets Groups Projects
Commit 952eca0a authored by Melchior FRANZ's avatar Melchior FRANZ Committed by Greg Kroah-Hartman
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment