diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-10-08 14:59:12 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-10-08 15:13:59 +0300 |
commit | 2311072d9905b1f810a3c0665362ee552f076c26 (patch) | |
tree | d3df02d1154edf3ca30be97e45a03a7b3a82f02a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7124ae48f2a45399789bcc14389614c899f6aa7c (diff) | |
download | linux-2311072d9905b1f810a3c0665362ee552f076c26.tar.xz |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions