linux_dsm_epyc7002/drivers/media/platform/atmel
Mauro Carvalho Chehab 79c5453d3e media: atmel-isc: avoid returning a random value at isc_parse_dt()
As warned by smatch:
drivers/media/platform/atmel/atmel-isc.c:2097 isc_parse_dt() error: uninitialized symbol 'ret'.

The problem here is that of_graph_get_next_endpoint() can
potentially return NULL on its first pass, with would make
it return a random value, as ret is not initialized.

While here, use while(1) instead of for(; ;), as while is
the preferred syntax for such kind of loops.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-11 13:04:50 -05:00
..
atmel-isc-regs.h media updates for v4.15-rc1 2017-11-15 20:30:12 -08:00
atmel-isc.c media: atmel-isc: avoid returning a random value at isc_parse_dt() 2017-12-11 13:04:50 -05:00
atmel-isi.c media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
atmel-isi.h [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00
Kconfig [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
Makefile [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00