Hi,

one more conversion to kzalloc.

        Regards
                Oliver

Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]>

--- a/drivers/usb/image/mdc800.c        2006-01-03 04:21:10.000000000 +0100
+++ b/drivers/usb/image/mdc800.c        2006-01-06 20:26:36.000000000 +0100
@@ -979,13 +979,11 @@
 {
        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);
 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to