V4L/DVB (3344a): Conversions from kmalloc+memset to k(z|c)alloc
[linux-2.6-block.git] / drivers / media / video / tvaudio.c
index b582943a0d3e57406f9d3ed1434c20f26586b873..9baa6392e9b50d3752fbb6e3a9ef6063d25eb4d7 100644 (file)
@@ -1468,10 +1468,9 @@ static int chip_attach(struct i2c_adapter *adap, int addr, int kind)
        struct CHIPSTATE *chip;
        struct CHIPDESC  *desc;
 
-       chip = kmalloc(sizeof(*chip),GFP_KERNEL);
+       chip = kzalloc(sizeof(*chip),GFP_KERNEL);
        if (!chip)
                return -ENOMEM;
-       memset(chip,0,sizeof(*chip));
        memcpy(&chip->c,&client_template,sizeof(struct i2c_client));
        chip->c.adapter = adap;
        chip->c.addr = addr;