]> err.no Git - linux-2.6/blobdiff - drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c
V4L/DVB (5091): Pvrusb2: Use kzalloc in place of kmalloc/memset pairs
[linux-2.6] / drivers / media / video / pvrusb2 / pvrusb2-cx2584x-v4l.c
index a3357bf2a1af4b5c20560a1ab64563df26bb1214..851099a85e5a481c00679cb76aea4892d50a900b 100644 (file)
@@ -231,9 +231,8 @@ int pvr2_i2c_cx2584x_v4l_setup(struct pvr2_hdw *hdw,
        if (cp->handler) return 0;
        if (!decoder_detect(cp)) 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;