]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ASoC: tpa6130a2: Remove redundant OOM message
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:59:02 +0000 (15:29 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 27 Jun 2014 11:48:22 +0000 (12:48 +0100)
Let memory subsystem handle the error logging.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/tpa6130a2.c

index 8fc5a647453b61c8c7636db58dcd9c182d818a60..6fac9e034c483861dc82b3e0468b9bbb362f562d 100644 (file)
@@ -381,10 +381,8 @@ static int tpa6130a2_probe(struct i2c_client *client,
        dev = &client->dev;
 
        data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
-       if (data == NULL) {
-               dev_err(dev, "Can not allocate memory\n");
+       if (!data)
                return -ENOMEM;
-       }
 
        if (pdata) {
                data->power_gpio = pdata->power_gpio;