From: Sachin Kamat Date: Fri, 20 Jun 2014 09:58:59 +0000 (+0530) Subject: ASoC: sgtl5000: Remove redundant OOM message X-Git-Tag: v3.17-rc1~101^2~5^2~6^3~13 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=be81333415fa06440a6fc788053db3622caab194;p=users%2Fjedix%2Flinux-maple.git ASoC: sgtl5000: Remove redundant OOM message Let memory subsystem handle the error logging. Signed-off-by: Sachin Kamat Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 3d39f0b5b4a8a..249fadbdb42ec 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) {