From: Sachin Kamat Date: Fri, 20 Jun 2014 09:59:12 +0000 (+0530) Subject: ASoC: wm_hubs: Remove redundant OOM message X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ba546687083b68f43c26fcce9771278faae2bcf5;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git ASoC: wm_hubs: Remove redundant OOM message Let memory subsystem handle the error logging. Signed-off-by: Sachin Kamat Acked-by: Charles Keepax Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index 916817fe6632..374537d5e179 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c @@ -183,10 +183,8 @@ static void wm_hubs_dcs_cache_set(struct snd_soc_codec *codec, u16 dcs_cfg) return; cache = devm_kzalloc(codec->dev, sizeof(*cache), GFP_KERNEL); - if (!cache) { - dev_err(codec->dev, "Failed to allocate DCS cache entry\n"); + if (!cache) return; - } cache->left = snd_soc_read(codec, WM8993_LEFT_OUTPUT_VOLUME); cache->left &= WM8993_HPOUT1L_VOL_MASK;