projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d874a2b
)
[PATCH] USB: kzalloc in usbled
author
Oliver Neukum
<oliver@neukum.org>
Fri, 6 Jan 2006 21:44:52 +0000
(22:44 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 20 Mar 2006 22:49:54 +0000
(14:49 -0800)
another one for kzalloc.
Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usbled.c
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/usbled.c
b/drivers/usb/misc/usbled.c
index 877b081a3a6e9edb708b0ec0cac27fe796136ebc..f441964132c044315cd87ec0733bfc6bf4f8748a 100644
(file)
--- a/
drivers/usb/misc/usbled.c
+++ b/
drivers/usb/misc/usbled.c
@@
-106,12
+106,11
@@
static int led_probe(struct usb_interface *interface, const struct usb_device_id
struct usb_led *dev = NULL;
int retval = -ENOMEM;
- dev = k
m
alloc(sizeof(struct usb_led), GFP_KERNEL);
+ dev = k
z
alloc(sizeof(struct usb_led), GFP_KERNEL);
if (dev == NULL) {
dev_err(&interface->dev, "Out of memory\n");
goto error;
}
- memset (dev, 0x00, sizeof (*dev));
dev->udev = usb_get_dev(udev);