aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2017-11-01 08:54:58 -0400
committerMauro Carvalho Chehab <[email protected]>2017-12-11 13:04:50 -0500
commit79c5453d3e3e7de9e5ce5c88af29b34688dd0469 (patch)
tree5b219cc95205b128ca3f1e8d447ddc9190cd66ff /tools/perf/scripts/python
parent910b0797fa9e8af09c44a3fa36cb310ba7a7218d (diff)
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 <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions