]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - sound/oss/dmasound/dac3550a.c
[PATCH] OSS: replace kmalloc()+memset() combos with kzalloc()
[mirror_ubuntu-artful-kernel.git] / sound / oss / dmasound / dac3550a.c
index 7360d8954d6009009f57e7b18b8f437fb15f9c52..0f0d03a55dab71139fbac2fd1da9fb3832f605ba 100644 (file)
@@ -163,10 +163,9 @@ static int daca_detect_client(struct i2c_adapter *adapter, int address)
        struct i2c_client *new_client;
        int rc = -ENODEV;
 
-       new_client = kmalloc(sizeof(*new_client), GFP_KERNEL);
+       new_client = kzalloc(sizeof(*new_client), GFP_KERNEL);
        if (!new_client)
                return -ENOMEM;
-       memset(new_client, 0, sizeof(*new_client));
 
        new_client->addr = address;
        new_client->adapter = adapter;