]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/media/video/tda9887.c
V4L/DVB (3344a): Conversions from kmalloc+memset to k(z|c)alloc
[mirror_ubuntu-artful-kernel.git] / drivers / media / video / tda9887.c
index 9cf47dc65579c28acc2b9fcf4224593884484745..5815649bdc78e316f3fd40c655530909a3986321 100644 (file)
@@ -696,9 +696,8 @@ static int tda9887_attach(struct i2c_adapter *adap, int addr, int kind)
        client_template.adapter = adap;
        client_template.addr    = addr;
 
-       if (NULL == (t = kmalloc(sizeof(*t), GFP_KERNEL)))
+       if (NULL == (t = kzalloc(sizeof(*t), GFP_KERNEL)))
                return -ENOMEM;
-       memset(t,0,sizeof(*t));
 
        t->client      = client_template;
        t->std         = 0;