diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-11-01 08:09:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-11-01 12:25:59 -0400 |
commit | 9917fbcfa20ab987d6381fd0365665e5c1402d75 (patch) | |
tree | 03181f640972796a93b0a2cdbc043e173a992fb6 /drivers/media/mmc | |
parent | 58364c505d60cd49f287dd3ee0a4a085f412d3b1 (diff) | |
download | op-kernel-dev-9917fbcfa20ab987d6381fd0365665e5c1402d75.zip op-kernel-dev-9917fbcfa20ab987d6381fd0365665e5c1402d75.tar.gz |
media: camss-vfe: always initialize reg at vfe_set_xbar_cfg()
if output->wm_num is bigger than 2, the value for reg is
not initialized, as warned by smatch:
drivers/media/platform/qcom/camss-8x16/camss-vfe.c:633 vfe_set_xbar_cfg() error: uninitialized symbol 'reg'.
drivers/media/platform/qcom/camss-8x16/camss-vfe.c:637 vfe_set_xbar_cfg() error: uninitialized symbol 'reg'.
That shouldn't happen in practice, so add a logic that will
break the loop if i > 1, fixing the warnings.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Todor Tomov <todor.tomov@linaro.org>
Diffstat (limited to 'drivers/media/mmc')
0 files changed, 0 insertions, 0 deletions