Commit d83d2e08 authored by Yang Yingliang's avatar Yang Yingliang Committed by Mauro Carvalho Chehab

media: isif: 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: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent a7dda655
...@@ -1107,7 +1107,6 @@ static int isif_remove(struct platform_device *pdev) ...@@ -1107,7 +1107,6 @@ static int isif_remove(struct platform_device *pdev)
isif_cfg.linear_tbl1_addr = NULL; isif_cfg.linear_tbl1_addr = NULL;
while (i < 3) { while (i < 3) {
res = platform_get_resource(pdev, IORESOURCE_MEM, i); res = platform_get_resource(pdev, IORESOURCE_MEM, i);
if (res)
release_mem_region(res->start, resource_size(res)); release_mem_region(res->start, resource_size(res));
i++; i++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment