linux/drivers/media/platform/qcom/camss-8x16
Mauro Carvalho Chehab 9917fbcfa2 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>
2017-11-01 12:25:59 -04:00
..
Makefile media: camss: Enable building 2017-08-26 15:13:11 -04:00
camss-csid.c media: camss: Add abbreviations explanation 2017-08-26 15:32:40 -04:00
camss-csid.h media: camss: Add abbreviations explanation 2017-08-26 15:32:40 -04:00
camss-csiphy.c media: qcom: mark long long consts as such 2017-08-26 15:33:25 -04:00
camss-csiphy.h media: camss: Use optimal clock frequency rates 2017-08-26 15:31:06 -04:00
camss-ispif.c media: camss: Add abbreviations explanation 2017-08-26 15:32:40 -04:00
camss-ispif.h media: camss: Add abbreviations explanation 2017-08-26 15:32:40 -04:00
camss-vfe.c media: camss-vfe: always initialize reg at vfe_set_xbar_cfg() 2017-11-01 12:25:59 -04:00
camss-vfe.h media: camss: Add abbreviations explanation 2017-08-26 15:32:40 -04:00
camss-video.c media: camss-video.c: drop unused header 2017-10-31 07:26:58 -04:00
camss-video.h media: camss: vfe: Support for frame padding 2017-08-26 15:18:37 -04:00
camss.c media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
camss.h media: camss: Use optimal clock frequency rates 2017-08-26 15:31:06 -04:00