diff options
author | Oliver Neukum <oliver@neukum.org> | 2006-01-06 22:24:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 14:49:53 -0800 |
commit | 5f7481337cc803926b5c43aac44441f683ff91ed (patch) | |
tree | 094413d5b2cd102d7dc629934335d966b705ea90 /drivers/usb/misc | |
parent | 51b208ddf6e492c58609e07fa50bce98bb02cb27 (diff) | |
download | linux-5f7481337cc803926b5c43aac44441f683ff91ed.tar.bz2 |
[PATCH] USB: kzalloc in cytherm
another one for kzalloc.
Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/cytherm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/misc/cytherm.c b/drivers/usb/misc/cytherm.c index 6671317b495f..a04204292aa3 100644 --- a/drivers/usb/misc/cytherm.c +++ b/drivers/usb/misc/cytherm.c @@ -351,12 +351,11 @@ static int cytherm_probe(struct usb_interface *interface, struct usb_cytherm *dev = NULL; int retval = -ENOMEM; - dev = kmalloc (sizeof(struct usb_cytherm), GFP_KERNEL); + dev = kzalloc (sizeof(struct usb_cytherm), 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); |