summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-05-10 14:47:49 +0200
committerMark Brown <broonie@kernel.org>2022-05-10 15:01:53 +0200
commit9d62ba94266be3ddc864348a4df7e54f5562f0d5 (patch)
tree89f64eb515e9b7588263d43effebd75bbc814349 /sound/soc/samsung
parentASoC: tlv320adcx140: Register a callback to disable the regulator_disable (diff)
downloadlinux-9d62ba94266be3ddc864348a4df7e54f5562f0d5.tar.xz
linux-9d62ba94266be3ddc864348a4df7e54f5562f0d5.zip
ASoC: samsung: spdif: remove unnecessary check of mem_res
The resource is checked in probe function, so there is no need do this check in remove function. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20220510124749.2663874-1-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r--sound/soc/samsung/spdif.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c
index 226c359892e9..47b6d19e43ff 100644
--- a/sound/soc/samsung/spdif.c
+++ b/sound/soc/samsung/spdif.c
@@ -467,8 +467,7 @@ static int spdif_remove(struct platform_device *pdev)
iounmap(spdif->regs);
mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (mem_res)
- release_mem_region(mem_res->start, resource_size(mem_res));
+ release_mem_region(mem_res->start, resource_size(mem_res));
clk_disable_unprepare(spdif->sclk);
clk_disable_unprepare(spdif->pclk);