V4L/DVB (3344a): Conversions from kmalloc+memset to k(z|c)alloc
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / media / video / tda7432.c
index 99261f15e66ebebdb15a3ea9921ff1029188d291..873796bedec8f7454f3dc06004c696a5eb914b07 100644 (file)
@@ -300,10 +300,9 @@ static int tda7432_attach(struct i2c_adapter *adap, int addr, int kind)
        struct tda7432 *t;
        struct i2c_client *client;
 
-       t = kmalloc(sizeof *t,GFP_KERNEL);
+       t = kzalloc(sizeof *t,GFP_KERNEL);
        if (!t)
                return -ENOMEM;
-       memset(t,0,sizeof *t);
 
        client = &t->c;
        memcpy(client,&client_template,sizeof(struct i2c_client));