linux/drivers/staging/media
Arnd Bergmann 8d7cd91da4 staging: atomisp: avoid false-positive maybe-uninitialized warning
In combination with CONFIG_PROFILE_ANNOTATED_BRANCHES=y, the unlikely()
inside of the WARN() macro becomes too complex for gcc to see that
we don't use the output arguments of mt9m114_to_res() are used
correctly:

drivers/staging/media/atomisp/i2c/mt9m114.c: In function 'mt9m114_get_fmt':
drivers/staging/media/atomisp/i2c/mt9m114.c:817:13: error: 'height' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  int width, height;
             ^~~~~~
drivers/staging/media/atomisp/i2c/mt9m114.c: In function 'mt9m114_s_exposure_selection':
drivers/staging/media/atomisp/i2c/mt9m114.c:1179:13: error: 'height' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Without WARN_ON(), there is no problem, so by simply replacing it with
v4l2_err(), the warnings go away. The WARN() output is also not needed
here, as we'd probably catch the problem before even getting here,
and other checks for the same condition already use v4l2_err.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-14 10:11:50 +02:00
..
atomisp staging: atomisp: avoid false-positive maybe-uninitialized warning 2017-04-14 10:11:50 +02:00
bcm2048 Staging: media: bcm2048: Fixed coding style issue. 2017-02-12 13:55:28 -08:00
cxd2099 staging: cxd2099: Remove redundant code 2017-03-09 18:15:08 +01:00
davinci_vpfe Staging: media: Unmap and release region obtained by ioremap_nocache 2017-03-21 08:52:29 +01:00
lirc Staging: media: lirc - style fix 2017-03-14 06:03:50 +08:00
omap4iss [media] v4l: omap4iss: Clean up file handle in open() and release() 2017-01-31 11:50:06 -02:00
s5p-cec [media] staging/media/s5p-cec/exynos_hdmi_cecctrl.c Fixed blank line before closing brace '}' 2017-01-30 15:48:54 -02:00
st-cec [media] cec: pass parent device in register(), not allocate() 2016-11-29 12:07:17 -02:00
Kconfig staging/atomisp: Add support for the Intel IPU v2 2017-03-06 09:39:54 +01:00
Makefile staging/atomisp: Add support for the Intel IPU v2 2017-03-06 09:39:54 +01:00