]> err.no Git - linux-2.6/blobdiff - drivers/media/video/pvrusb2/pvrusb2-tuner.c
V4L/DVB (5091): Pvrusb2: Use kzalloc in place of kmalloc/memset pairs
[linux-2.6] / drivers / media / video / pvrusb2 / pvrusb2-tuner.c
index bb17db3f6434a6e50f1bfea5bffe2095145bf26d..05e65ce2e3a96109684695c841b2cb06675cbc58 100644 (file)
@@ -93,9 +93,8 @@ int pvr2_i2c_tuner_setup(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
        struct pvr2_tuner_handler *ctxt;
        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->i2c_handler.func_data = ctxt;
        ctxt->i2c_handler.func_table = &tuner_funcs;