Message ID | 1403258352-8210-14-git-send-email-sachin.kamat@samsung.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 549f66e0286bb800e024d80582f9c95c6f4f5947 |
Headers | show |
On Fri, Jun 20, 2014 at 03:29:10PM +0530, Sachin Kamat wrote: > Let memory subsystem handle the error logging. > > Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> > --- Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Thanks, Charles
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 9719d3ca8e47..39d8df040116 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -3296,12 +3296,8 @@ static void wm8994_handle_pdata(struct wm8994_priv *wm8994) /* We need an array of texts for the enum API */ wm8994->drc_texts = devm_kzalloc(wm8994->hubs.codec->dev, sizeof(char *) * pdata->num_drc_cfgs, GFP_KERNEL); - if (!wm8994->drc_texts) { - dev_err(wm8994->hubs.codec->dev, - "Failed to allocate %d DRC config texts\n", - pdata->num_drc_cfgs); + if (!wm8994->drc_texts) return; - } for (i = 0; i < pdata->num_drc_cfgs; i++) wm8994->drc_texts[i] = pdata->drc_cfgs[i].name;
Let memory subsystem handle the error logging. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> --- sound/soc/codecs/wm8994.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)