ASoC: cs4270: Remove redundant OOM message
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:58:57 +0000 (15:28 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 27 Jun 2014 11:48:21 +0000 (12:48 +0100)
Let memory subsystem handle the error logging.

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

index 9947a95..e6d4ff9 100644 (file)
@@ -664,10 +664,8 @@ static int cs4270_i2c_probe(struct i2c_client *i2c_client,
 
        cs4270 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4270_private),
                              GFP_KERNEL);
-       if (!cs4270) {
-               dev_err(&i2c_client->dev, "could not allocate codec\n");
+       if (!cs4270)
                return -ENOMEM;
-       }
 
        /* get the power supply regulators */
        for (i = 0; i < ARRAY_SIZE(supply_names); i++)