commit | 7417b1b1f36cc214dc458e717278a27a912d3b51 | [log] [tgz] |
---|---|---|
author | Sakari Ailus <sakari.ailus@linux.intel.com> | Tue May 28 14:00:51 2024 +0300 |
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | Tue Jun 04 08:31:25 2024 +0200 |
tree | 89183498ff60a83ae55f55e9ad91260c03a3c88a | |
parent | da1d582aa7e349dd46351f2168911d2f0e058e9f [diff] |
media: v4l2-cci: Always assign *val Always assign *val to 0 in cci_read(). This has the benefit of not requiring initialisation of the variables data is read to using cci_read(). Once smatch is fixed, it could catch the use of uninitialised reads. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Tested-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>