diff options
author | Melchior FRANZ <mfranz@aon.at> | 2010-12-22 15:55:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-01-23 05:32:54 +0300 |
commit | 952eca0a95e27660f7a56a7186b9bd09d791ced4 (patch) | |
tree | 096a1a09162eeff6aff26d2d8dba2986695b60a3 /drivers/usb/misc/usbled.c | |
parent | baab93afc2844b68d57b0dcca5e1d34c5d7cf411 (diff) | |
download | linux-952eca0a95e27660f7a56a7186b9bd09d791ced4.tar.xz |
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 <mfranz@aon.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc/usbled.c')
-rw-r--r-- | drivers/usb/misc/usbled.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |