[media] m5mols: potential uninitialized variable
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Mar 2016 07:07:10 +0000 (04:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 Apr 2016 20:10:59 +0000 (17:10 -0300)
commitcc7666a3948c6a554fa4c39b4fb4ccbdbdce1343
treee26423deac8b539c17a91989012e1c5818c20917
parent60587bd0680507f48ae3a7360983228fd207de8a
[media] m5mols: potential uninitialized variable

Smatch complains that there are some paths where "status" isn't
initialized.  The code does assume that m5mols_read_u8() can fail so it
seems as if Smatch is correct.

Let's initialize it to REG_ISO_AUTO which is zero.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/m5mols/m5mols_controls.c