ASoC: cs42l73: Remove redundant OOM message
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:58:58 +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/cs42l73.c

index ae3717992d568fb2ba533634a25e306a9e8fd05b..e3b6016247949bb6b5a5a5d98f58eb7f496477dc 100644 (file)
@@ -1408,10 +1408,8 @@ static int cs42l73_i2c_probe(struct i2c_client *i2c_client,
 
        cs42l73 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l73_private),
                               GFP_KERNEL);
-       if (!cs42l73) {
-               dev_err(&i2c_client->dev, "could not allocate codec\n");
+       if (!cs42l73)
                return -ENOMEM;
-       }
 
        cs42l73->regmap = devm_regmap_init_i2c(i2c_client, &cs42l73_regmap);
        if (IS_ERR(cs42l73->regmap)) {