diff options
author | Melchior FRANZ <mfranz@aon.at> | 2010-12-22 13:55:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-01-22 18:32:54 -0800 |
commit | 952eca0a95e27660f7a56a7186b9bd09d791ced4 (patch) | |
tree | 096a1a09162eeff6aff26d2d8dba2986695b60a3 /drivers/usb/misc | |
parent | baab93afc2844b68d57b0dcca5e1d34c5d7cf411 (diff) | |
download | op-kernel-dev-952eca0a95e27660f7a56a7186b9bd09d791ced4.zip op-kernel-dev-952eca0a95e27660f7a56a7186b9bd09d791ced4.tar.gz |
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')
-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 1732d9b..1616ad1 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); |