diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-11-02 00:05:53 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-11 21:13:39 +0300 |
commit | f161544d9d7d8e617c13fe30504317c417ed49e9 (patch) | |
tree | 2c5b68f7a98af9c2cb0643b04d454092b4fbbdef /drivers/media/tuners | |
parent | 07ade2d0f680864ba0c93553d008900dd3e1a421 (diff) | |
download | linux-f161544d9d7d8e617c13fe30504317c417ed49e9.tar.xz |
media: drxd_hard: better handle I2C errors
As warned by smatch:
drivers/media/dvb-frontends/drxd_hard.c:989 HI_Command() error: uninitialized symbol 'waitCmd'.
drivers/media/dvb-frontends/drxd_hard.c:1306 SC_WaitForReady() error: uninitialized symbol 'curCmd'.
drivers/media/dvb-frontends/drxd_hard.c:1322 SC_SendCommand() error: uninitialized symbol 'errCode'.
drivers/media/dvb-frontends/drxd_hard.c:1339 SC_ProcStartCommand() error: uninitialized symbol 'scExec'.
The error handling on several places are somewhat flawed, as
they don't check if Read16() returns an error.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/tuners')
0 files changed, 0 insertions, 0 deletions