summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorMelchior FRANZ <mfranz@aon.at>2010-12-22 13:55:24 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-22 18:32:54 -0800
commit952eca0a95e27660f7a56a7186b9bd09d791ced4 (patch)
tree096a1a09162eeff6aff26d2d8dba2986695b60a3 /drivers/usb/misc
parentbaab93afc2844b68d57b0dcca5e1d34c5d7cf411 (diff)
downloadblackbird-op-linux-952eca0a95e27660f7a56a7186b9bd09d791ced4.tar.gz
blackbird-op-linux-952eca0a95e27660f7a56a7186b9bd09d791ced4.zip
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.c2
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);
OpenPOWER on IntegriCloud