mirror of
https://github.com/torvalds/linux.git
synced 2024-09-29 03:13:05 +00:00
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>
This commit is contained in:
parent
baab93afc2
commit
952eca0a95
|
@ -45,7 +45,7 @@ struct usb_led {
|
||||||
|
|
||||||
static void change_color(struct usb_led *led)
|
static void change_color(struct usb_led *led)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval = 0;
|
||||||
unsigned char *buffer;
|
unsigned char *buffer;
|
||||||
|
|
||||||
buffer = kmalloc(8, GFP_KERNEL);
|
buffer = kmalloc(8, GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user