Hans Verkuil 2311072d99 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>
2020-10-08 14:13:59 +02:00
..
2019-07-09 09:47:22 -07:00
2020-09-07 16:13:06 +02:00
2020-07-19 14:15:42 +02:00
2020-07-19 14:15:42 +02:00
2020-07-19 14:15:42 +02:00
2019-07-09 09:47:22 -07:00
2019-03-01 09:29:58 -05:00
2020-08-29 08:35:27 +02:00
2020-09-01 14:13:27 +02:00
2020-08-29 08:35:27 +02:00
2019-08-26 14:05:09 -03:00
2020-07-19 14:15:42 +02:00
2019-03-01 09:29:58 -05:00
2019-03-01 09:29:58 -05:00