[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>
This commit is contained in:
parent
9fcd5c322c
commit
9ff87d7326
@ -978,13 +978,11 @@ static int __init usb_mdc800_init (void)
|
|||||||
{
|
{
|
||||||
int retval = -ENODEV;
|
int retval = -ENODEV;
|
||||||
/* Allocate Memory */
|
/* Allocate Memory */
|
||||||
mdc800=kmalloc (sizeof (struct mdc800_data), GFP_KERNEL);
|
mdc800=kzalloc (sizeof (struct mdc800_data), GFP_KERNEL);
|
||||||
if (!mdc800)
|
if (!mdc800)
|
||||||
goto cleanup_on_fail;
|
goto cleanup_on_fail;
|
||||||
|
|
||||||
memset(mdc800, 0, sizeof(struct mdc800_data));
|
|
||||||
mdc800->dev = NULL;
|
mdc800->dev = NULL;
|
||||||
mdc800->open=0;
|
|
||||||
mdc800->state=NOT_CONNECTED;
|
mdc800->state=NOT_CONNECTED;
|
||||||
init_MUTEX (&mdc800->io_lock);
|
init_MUTEX (&mdc800->io_lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user