Skip to content

Commit

Permalink
[PATCH] USB: mdc800.c to kzalloc
Browse files Browse the repository at this point in the history
one more conversion to kzalloc.

Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent 9fcd5c3 commit 9ff87d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/usb/image/mdc800.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9ff87d7

Please sign in to comment.