media: v4l2-cci: Always assign *val
[ Upstream commit 7417b1b1 ] 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> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment