Skip to content

Commit

Permalink
USB: DL100B webmail notifier: initialize return value
Browse files Browse the repository at this point in the history
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 <mfranz@aon.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Melchior FRANZ authored and Greg Kroah-Hartman committed Jan 23, 2011
1 parent baab93a commit 952eca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/misc/usbled.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 952eca0

Please sign in to comment.