]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-core: remove rtd NULL check on soc_free_pcm_runtime()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 25 Sep 2017 01:38:13 +0000 (01:38 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 25 Sep 2017 16:30:48 +0000 (17:30 +0100)
commit84909e593c8c0212710fb6b9dad2c845c205b6c8
tree80ef6e5f2fabac80f6642b80eb2c74903e1d5c87
parentcafa592e420717de6b2bfc797302ffda108d548b
ASoC: soc-core: remove rtd NULL check on soc_free_pcm_runtime()

static soc_free_pcm_runtime() is never called with rtd == NULL.
This patch removes unnecessary rtd == NULL check from
soc_free_pcm_runtime().

Furthermore, NULL check before kfree() is not needed.
This patch removes such ckeck too.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c