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

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

media: atmel-isi: drop unnecessary while loop



As there is no way this can loop it actually makes no sense to have
a while(1){} around the body - all three possible paths end in a return
statement.

Fixes: commit c1d82b89 "[media] atmel-isi: move out of soc_camera to atmel"

Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Acked-by: default avatarLudovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent e32eb0d8
Loading
Loading
Loading
Loading
+13 −15
Original line number Diff line number Diff line
@@ -1106,7 +1106,6 @@ static int isi_graph_parse(struct atmel_isi *isi, 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;
@@ -1123,7 +1122,6 @@ static int isi_graph_parse(struct atmel_isi *isi, struct device_node *node)
	isi->entity.asd.match.fwnode = of_fwnode_handle(remote);
	return 0;
}
}

static int isi_graph_init(struct atmel_isi *isi)
{