]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: sgtl5000: Remove redundant OOM message
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:58:59 +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>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sgtl5000.c

index 3d39f0b5b4a8afd8352edd95627e1fd690d968d5..249fadbdb42ecd098fcaf7507532b6a5ab8f13f2 100644 (file)
@@ -843,10 +843,8 @@ static int ldo_regulator_register(struct snd_soc_codec *codec,
 
        ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL);
 
-       if (!ldo) {
-               dev_err(codec->dev, "failed to allocate ldo_regulator\n");
+       if (!ldo)
                return -ENOMEM;
-       }
 
        ldo->desc.name = kstrdup(dev_name(codec->dev), GFP_KERNEL);
        if (!ldo->desc.name) {