ASoC: soc-cache: Avoid a redundant test for codec->reg_def_copy
PATCH 1/1 ASoC: soc-cache: Avoid a redundant test for codec->reg_def_copy
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/soc-cache.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
sound/soc/soc-cache.c +1 -3
@@ -727,13 +727,11 @@ static int snd_soc_lzo_cache_init(struct snd_soc_codec *codec)* and remember to free it afterwards. */ tofree =0 ; -if (!codec->reg_def_copy) - tofree =1 ; -if (!codec->reg_def_copy) { codec->reg_def_copy =kzalloc (codec->reg_size,GFP_KERNEL );if (!codec->reg_def_copy)return -ENOMEM ; + tofree =1 ; } blkcount =snd_soc_lzo_block_count ();
Signature · 1 line
1.7.4.1