Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8eb8e5c authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Mauro Carvalho Chehab
Browse files

media: stm32-dcmi: drop unnecessary while(1) loop



The while(1) is effectively useless as all possible paths within it
return thus there is no way to loop.

Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent fdaf5958
Loading
Loading
Loading
Loading
+13 −15
Original line number Diff line number Diff line
@@ -1567,7 +1567,6 @@ static int dcmi_graph_parse(struct stm32_dcmi *dcmi, struct device_node *node)
	struct device_node *ep = NULL;
	struct device_node *remote;

	while (1) {
	ep = of_graph_get_next_endpoint(node, ep);
	if (!ep)
		return -EINVAL;
@@ -1584,7 +1583,6 @@ static int dcmi_graph_parse(struct stm32_dcmi *dcmi, struct device_node *node)
	dcmi->entity.asd.match.fwnode = of_fwnode_handle(remote);
	return 0;
}
}

static int dcmi_graph_init(struct stm32_dcmi *dcmi)
{