summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sgtl5000.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-20 15:28:59 +0530
committerMark Brown <broonie@linaro.org>2014-06-27 12:48:21 +0100
commitbe81333415fa06440a6fc788053db3622caab194 (patch)
tree70446d985f842d48cd20d08d29233aca7426bd90 /sound/soc/codecs/sgtl5000.c
parent10d95ad48b4bf49b9853466654654eec2d9df031 (diff)
downloadblackbird-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.c4
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) {
OpenPOWER on IntegriCloud