diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-10-08 13:59:12 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-10-08 14:13:59 +0200 |
commit | 2311072d9905b1f810a3c0665362ee552f076c26 (patch) | |
tree | d3df02d1154edf3ca30be97e45a03a7b3a82f02a /lib/stackdepot.c | |
parent | media: s5k5baf: drop 'data' field in struct s5k5baf_fw (diff) | |
download | linux-2311072d9905b1f810a3c0665362ee552f076c26.tar.xz linux-2311072d9905b1f810a3c0665362ee552f076c26.zip |
media: tvp7002: fix uninitialized variable warning
tvp7002.c: In function 'tvp7002_g_register':
tvp7002.c:691:11: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]
691 | reg->val = val;
| ~~~~~~~~~^~~~~
Just return without setting 'reg' if tvp7002_read returns an error.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'lib/stackdepot.c')
0 files changed, 0 insertions, 0 deletions