aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorKieran Bingham <[email protected]>2018-03-26 09:29:17 -0400
committerMauro Carvalho Chehab <[email protected]>2018-04-04 06:27:28 -0400
commit639fa43d59e5a41ca8c55592cd5c1021fea2ab83 (patch)
treeacd4968cfda7204acfb247142b718aa9af951175 /tools/perf/util/scripting-engines/trace-event-python.c
parent19ad26f9e6e1decdde6d48fe1849a06a103b0f09 (diff)
media: vsp1: Fix BRx conditional path in WPF
When a BRx is provided by a pipeline, the WPF must determine the master layer. Currently the condition to check this identifies pipe->bru || pipe->num_inputs > 1. The code then moves on to dereference pipe->bru, thus the check fails static analysers on the possibility that pipe->num_inputs could be greater than 1 without pipe->bru being set. The reality is that the pipeline must have a BRx to support more than one input, thus this could never cause a fault - however it also identifies that the num_inputs > 1 check is redundant. Remove the redundant check - and always configure the master layer appropriately when we have a BRx configured in our pipeline. Fixes: 6134148f6098 ("v4l: vsp1: Add support for the BRS entity") Cc: [email protected] Suggested-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Kieran Bingham <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions