]> Git Repo - linux.git/commitdiff
ASoC: wm_hubs: Remove redundant OOM message
authorSachin Kamat <[email protected]>
Fri, 20 Jun 2014 09:59:12 +0000 (15:29 +0530)
committerMark Brown <[email protected]>
Fri, 27 Jun 2014 11:48:23 +0000 (12:48 +0100)
Let memory subsystem handle the error logging.

Signed-off-by: Sachin Kamat <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/wm_hubs.c

index 916817fe6632f573848f5a7a69bf95aa87072313..374537d5e179c6615ec98e1787536659c4a83ff0 100644 (file)
@@ -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;
This page took 0.057749 seconds and 4 git commands to generate.