summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2006-01-06 20:45:11 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-20 14:49:52 -0800
commit9ff87d7326d9e4666721070040474f60a68ab467 (patch)
treeeb698f3dcf856822290cf5fda7e45e9ace68352d /drivers
parent9fcd5c322ca2ee636e06e0c099cf8f1a692f832e (diff)
downloadlinux-9ff87d7326d9e4666721070040474f60a68ab467.tar.gz
linux-9ff87d7326d9e4666721070040474f60a68ab467.tar.bz2
linux-9ff87d7326d9e4666721070040474f60a68ab467.zip
[PATCH] USB: mdc800.c to kzalloc
one more conversion to kzalloc. Signed-off-by: Oliver Neukum <oliver@neukum.name> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/image/mdc800.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/image/mdc800.c b/drivers/usb/image/mdc800.c
index 049871145d63..4e3e4d048c14 100644
--- a/drivers/usb/image/mdc800.c
+++ b/drivers/usb/image/mdc800.c
@@ -978,13 +978,11 @@ static int __init usb_mdc800_init (void)
{
int retval = -ENODEV;
/* Allocate Memory */
- mdc800=kmalloc (sizeof (struct mdc800_data), GFP_KERNEL);
+ mdc800=kzalloc (sizeof (struct mdc800_data), GFP_KERNEL);
if (!mdc800)
goto cleanup_on_fail;
- memset(mdc800, 0, sizeof(struct mdc800_data));
mdc800->dev = NULL;
- mdc800->open=0;
mdc800->state=NOT_CONNECTED;
init_MUTEX (&mdc800->io_lock);