diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 05:59:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-27 07:48:23 -0400 |
commit | d931099bebdd057e77d47e5a990db6e769374bd5 (patch) | |
tree | aaefdc29ad60424889087e348de31aeb9a6944f5 | |
parent | a0f62118b73483d0e3a980759b5df869e81d4477 (diff) |
ASoC: wm8904: Remove redundant OOM message
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/wm8904.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index f7c549949c54..e2792980ecf2 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c | |||
@@ -2013,12 +2013,8 @@ static void wm8904_handle_pdata(struct snd_soc_codec *codec) | |||
2013 | /* We need an array of texts for the enum API */ | 2013 | /* We need an array of texts for the enum API */ |
2014 | wm8904->drc_texts = kmalloc(sizeof(char *) | 2014 | wm8904->drc_texts = kmalloc(sizeof(char *) |
2015 | * pdata->num_drc_cfgs, GFP_KERNEL); | 2015 | * pdata->num_drc_cfgs, GFP_KERNEL); |
2016 | if (!wm8904->drc_texts) { | 2016 | if (!wm8904->drc_texts) |
2017 | dev_err(codec->dev, | ||
2018 | "Failed to allocate %d DRC config texts\n", | ||
2019 | pdata->num_drc_cfgs); | ||
2020 | return; | 2017 | return; |
2021 | } | ||
2022 | 2018 | ||
2023 | for (i = 0; i < pdata->num_drc_cfgs; i++) | 2019 | for (i = 0; i < pdata->num_drc_cfgs; i++) |
2024 | wm8904->drc_texts[i] = pdata->drc_cfgs[i].name; | 2020 | wm8904->drc_texts[i] = pdata->drc_cfgs[i].name; |