]> err.no Git - linux-2.6/blobdiff - drivers/media/video/pvrusb2/pvrusb2-wm8775.c
V4L/DVB (5091): Pvrusb2: Use kzalloc in place of kmalloc/memset pairs
[linux-2.6] / drivers / media / video / pvrusb2 / pvrusb2-wm8775.c
index 234adf7aa614e62ad5fc2e0f675bd48baeba32b9..66b4d36ef76585f23af0c7e44cc7334e15490c17 100644 (file)
@@ -144,9 +144,8 @@ int pvr2_i2c_wm8775_setup(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
 
        if (cp->handler) return 0;
 
-       ctxt = kmalloc(sizeof(*ctxt),GFP_KERNEL);
+       ctxt = kzalloc(sizeof(*ctxt),GFP_KERNEL);
        if (!ctxt) return 0;
-       memset(ctxt,0,sizeof(*ctxt));
 
        ctxt->handler.func_data = ctxt;
        ctxt->handler.func_table = &hfuncs;