linux/drivers/media/i2c/ccs
Sakari Ailus ae56e038f7 media: ccs: Make (non-)use of uninitialised variables more robust
GCC with W=2 level of kernel compiler warnings warns about the use of
uninitialised variables in a few locations. While these uninitialised
variables were not used in reality, this still produced compiler warnings.

Address this by assigning the variables to NULL and checking for NULL in
places it is not expected, returning -EIO in that case. This provides
at least some sanity checking at runtime as the compiler appears unable to
do that at compile time.

Reported-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-01-14 13:50:33 +01:00
..
ccs-core.c media: ccs: Switch from standard integer types to kernel ones 2021-01-12 17:56:00 +01:00
ccs-data-defs.h media: ccs: Add CCS static data parser library 2020-12-03 12:27:28 +01:00
ccs-data.c media: ccs: Make (non-)use of uninitialised variables more robust 2021-01-14 13:50:33 +01:00
ccs-data.h media: ccs: Small definition cleanup 2021-01-12 17:57:08 +01:00
ccs-limits.c
ccs-limits.h
ccs-quirk.c media: ccs-pll: Add support for decoupled OP domain calculation 2020-12-07 15:53:34 +01:00
ccs-quirk.h media: ccs: Change my e-mail address 2020-12-03 12:27:31 +01:00
ccs-reg-access.c media: ccs: Switch from standard integer types to kernel ones 2021-01-12 17:56:00 +01:00
ccs-reg-access.h media: ccs: Add support for manufacturer regs from sensor and module files 2020-12-03 12:27:32 +01:00
ccs-regs.h
ccs.h media: ccs: Switch from standard integer types to kernel ones 2021-01-12 17:56:00 +01:00
Kconfig media: smiapp-pll: Rename as ccs-pll 2020-12-03 12:27:31 +01:00
Makefile media: ccs: Add CCS static data parser library 2020-12-03 12:27:28 +01:00
smiapp-reg-defs.h media: ccs: Add support for old-style SMIA digital gain 2021-01-12 17:24:07 +01:00