diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 15:28:59 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-27 12:48:21 +0100 |
commit | be81333415fa06440a6fc788053db3622caab194 (patch) | |
tree | 70446d985f842d48cd20d08d29233aca7426bd90 /sound/soc/codecs/sgtl5000.c | |
parent | 10d95ad48b4bf49b9853466654654eec2d9df031 (diff) | |
download | blackbird-op-linux-be81333415fa06440a6fc788053db3622caab194.tar.gz blackbird-op-linux-be81333415fa06440a6fc788053db3622caab194.zip |
ASoC: sgtl5000: Remove redundant OOM message
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/sgtl5000.c')
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 3d39f0b5b4a8..249fadbdb42e 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -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) { |