639fa43d59
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:
|
||
---|---|---|
.. | ||
Makefile | ||
vsp1_bru.c | ||
vsp1_bru.h | ||
vsp1_clu.c | ||
vsp1_clu.h | ||
vsp1_dl.c | ||
vsp1_dl.h | ||
vsp1_drm.c | ||
vsp1_drm.h | ||
vsp1_drv.c | ||
vsp1_entity.c | ||
vsp1_entity.h | ||
vsp1_hgo.c | ||
vsp1_hgo.h | ||
vsp1_hgt.c | ||
vsp1_hgt.h | ||
vsp1_histo.c | ||
vsp1_histo.h | ||
vsp1_hsit.c | ||
vsp1_hsit.h | ||
vsp1_lif.c | ||
vsp1_lif.h | ||
vsp1_lut.c | ||
vsp1_lut.h | ||
vsp1_pipe.c | ||
vsp1_pipe.h | ||
vsp1_regs.h | ||
vsp1_rpf.c | ||
vsp1_rwpf.c | ||
vsp1_rwpf.h | ||
vsp1_sru.c | ||
vsp1_sru.h | ||
vsp1_uds.c | ||
vsp1_uds.h | ||
vsp1_video.c | ||
vsp1_video.h | ||
vsp1_wpf.c | ||
vsp1.h |