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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1107,7 +1107,6 @@ static int isif_remove(struct platform_device *pdev)
	isif_cfg.linear_tbl1_addr = NULL;
	while (i < 3) {
		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
		if (res)
		release_mem_region(res->start, resource_size(res));
		i++;
	}