[alsa-devel] [PATCH 16/16] ASoC: wm_hubs: Remove redundant OOM message
Sachin Kamat
sachin.kamat at samsung.com
Fri Jun 20 11:59:12 CEST 2014
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat at samsung.com>
---
sound/soc/codecs/wm_hubs.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
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;
--
1.7.9.5
More information about the Alsa-devel
mailing list