ASoC: wm8904: Remove redundant OOM message
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:59:08 +0000 (15:29 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 27 Jun 2014 11:48:23 +0000 (12:48 +0100)
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>
sound/soc/codecs/wm8904.c

index f7c549949c542203c954cb89b2a1f8552212e98a..e2792980ecf23c56a82d0f40f8f37122f7408a4d 100644 (file)
@@ -2013,12 +2013,8 @@ static void wm8904_handle_pdata(struct snd_soc_codec *codec)
                /* We need an array of texts for the enum API */
                wm8904->drc_texts = kmalloc(sizeof(char *)
                                            * pdata->num_drc_cfgs, GFP_KERNEL);
-               if (!wm8904->drc_texts) {
-                       dev_err(codec->dev,
-                               "Failed to allocate %d DRC config texts\n",
-                               pdata->num_drc_cfgs);
+               if (!wm8904->drc_texts)
                        return;
-               }
 
                for (i = 0; i < pdata->num_drc_cfgs; i++)
                        wm8904->drc_texts[i] = pdata->drc_cfgs[i].name;
This page took 0.025681 seconds and 5 git commands to generate.