diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-19 08:04:35 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-20 08:54:29 -0300 |
commit | 65b01665a98a8738371d945230f4bd6fb41a3594 (patch) | |
tree | a96d7de90cd26ed13ac4628fae8efa3ddb296f28 /block | |
parent | 5c0a1c28c064e5998f6d6f48826e9701e9f68af2 (diff) | |
download | lwn-65b01665a98a8738371d945230f4bd6fb41a3594.tar.gz lwn-65b01665a98a8738371d945230f4bd6fb41a3594.zip |
[media] cx24120: don't initialize a var that won't be used
As reported by smatch:
drivers/media/dvb-frontends/cx24120.c: In function 'cx24120_message_send':
drivers/media/dvb-frontends/cx24120.c:368:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret, ficus;
^
The values written by cx24120 are never checked. So, remove the
check here too. That's said, the best would be to do the reverse,
but globally: to properly handle the error codes.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Patrick Boettcher <patrick.boettcher@posteo.de>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions