[media] rtl2832: fix compiler warning
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 12 Mar 2015 07:27:43 +0000 (04:27 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 21:22:54 +0000 (18:22 -0300)
commitf2e37b9b733c720de917aa7616cce3a1c52225eb
treee072b0402f7ca614334fe5a66948b33dcdec3e0f
parentfae119beddb5c102f117f7f4bd59803e0f6637df
[media] rtl2832: fix compiler warning

>From the daily build:

rtl2832.c: In function 'rtl2832_read_status':
rtl2832.c:703:12: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
  } else if (tmp == 10) {
            ^

The code is OK, it's just the compiler that cannot figure out what's
going on. So just init 'tmp' to 0.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/rtl2832.c