projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1c9f68
)
ASoC: samsung: spdif: remove unnecessary check of mem_res
author
Yang Yingliang
<yangyingliang@huawei.com>
Tue, 10 May 2022 12:47:49 +0000
(20:47 +0800)
committer
Mark Brown
<broonie@kernel.org>
Tue, 10 May 2022 13:01:53 +0000
(14:01 +0100)
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>
sound/soc/samsung/spdif.c
patch
|
blob
|
history
diff --git
a/sound/soc/samsung/spdif.c
b/sound/soc/samsung/spdif.c
index 226c359892e9ff29ca0b50e74191a53526102d22..47b6d19e43ffb648554875b7520e272c31910aaa 100644
(file)
--- 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);