]> Git Repo - linux.git/blobdiff - drivers/media/video/dpc7146.c
V4L/DVB (3344a): Conversions from kmalloc+memset to k(z|c)alloc
[linux.git] / drivers / media / video / dpc7146.c
index da9481198c5305c4a916d858c046f7d1eb0fd9f7..2831bdd120573b911a5e719670db3be550bbb205 100644 (file)
@@ -94,12 +94,11 @@ static int dpc_probe(struct saa7146_dev* dev)
        struct i2c_client *client;
        struct list_head *item;
 
-       dpc = (struct dpc*)kmalloc(sizeof(struct dpc), GFP_KERNEL);
+       dpc = kzalloc(sizeof(struct dpc), GFP_KERNEL);
        if( NULL == dpc ) {
                printk("dpc_v4l2.o: dpc_probe: not enough kernel memory.\n");
                return -ENOMEM;
        }
-       memset(dpc, 0x0, sizeof(struct dpc));   
 
        /* FIXME: enable i2c-port pins, video-port-pins
           video port pins should be enabled here ?! */
This page took 0.034661 seconds and 4 git commands to generate.