media: staging: ipu3-imgu: Initialise height_per_slice in the stripes
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Thu, 16 Sep 2021 17:25:04 +0000 (19:25 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:56 +0000 (09:39 +0200)
commite2d3e77d0e7d3caf676cb0eb707f8c7b0a4d41b9
tree879e118aeae85c1bbff80c23daadf590d8922bc5
parent12ee5f71e0e7f93b10f83655c8c334c06536f9cb
media: staging: ipu3-imgu: Initialise height_per_slice in the stripes

While playing with low resolutions for the grid, it appeared that
height_per_slice is not initialised if we are not using both stripes for
the calculations. This pattern occurs three times:
- for the awb_fr processing block
- for the af processing block
- for the awb processing block

The idea of this small portion of code is to reduce complexity in
loading the statistics, it could be done also when only one stripe is
used. Fix it by getting this initialisation code outside of the else()
test case.

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/ipu3/ipu3-css-params.c