summaryrefslogtreecommitdiff
path: root/drivers/media/platform/ti/davinci
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-04-26 06:05:43 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-05-13 12:02:20 +0300
commita7dda6557388f984b2e962adf36c92c51d4a22a6 (patch)
treeef6a71f077c05eadcc89d2ac948d35150587e2d3 /drivers/media/platform/ti/davinci
parent26070ea6453baeed23c6791ffdb9eed7dfd9b982 (diff)
downloadlinux-a7dda6557388f984b2e962adf36c92c51d4a22a6.tar.xz
media: dm644x_ccdc: remove unnecessary check of 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> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/ti/davinci')
-rw-r--r--drivers/media/platform/ti/davinci/dm644x_ccdc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/ti/davinci/dm644x_ccdc.c b/drivers/media/platform/ti/davinci/dm644x_ccdc.c
index c6378c4e0074..e4073e99914c 100644
--- a/drivers/media/platform/ti/davinci/dm644x_ccdc.c
+++ b/drivers/media/platform/ti/davinci/dm644x_ccdc.c
@@ -839,8 +839,7 @@ static int dm644x_ccdc_remove(struct platform_device *pdev)
iounmap(ccdc_cfg.base_addr);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (res)
- release_mem_region(res->start, resource_size(res));
+ release_mem_region(res->start, resource_size(res));
vpfe_unregister_ccdc_device(&ccdc_hw_dev);
return 0;
}