aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-20 05:58:59 -0400
committerMark Brown <broonie@linaro.org>2014-06-27 07:48:21 -0400
commitbe81333415fa06440a6fc788053db3622caab194 (patch)
tree70446d985f842d48cd20d08d29233aca7426bd90
parent10d95ad48b4bf49b9853466654654eec2d9df031 (diff)
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>
-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,
843 843
844 ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL); 844 ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL);
845 845
846 if (!ldo) { 846 if (!ldo)
847 dev_err(codec->dev, "failed to allocate ldo_regulator\n");
848 return -ENOMEM; 847 return -ENOMEM;
849 }
850 848
851 ldo->desc.name = kstrdup(dev_name(codec->dev), GFP_KERNEL); 849 ldo->desc.name = kstrdup(dev_name(codec->dev), GFP_KERNEL);
852 if (!ldo->desc.name) { 850 if (!ldo->desc.name) {