diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-11-28 14:44:47 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-12-06 08:15:22 +0100 |
commit | dc8239bd8979e66fd92d1fc41e8aa69fde4257b3 (patch) | |
tree | 16422cc230e77fbe531c92aa7cb1963e35604418 /drivers/media/dvb-frontends | |
parent | media: media/frontend.h.rst.exceptions: add exceptions for new dvb defines (diff) | |
download | linux-dc8239bd8979e66fd92d1fc41e8aa69fde4257b3.tar.xz linux-dc8239bd8979e66fd92d1fc41e8aa69fde4257b3.zip |
media: dvb-frontends: drx39xyj: set missing error code
The rc return code was never set in hi_command().
This fixes this smatch warning:
drivers/media/dvb-frontends/drx39xyj/drxj.c:2351 hi_command() warn: missing error code 'rc'
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r-- | drivers/media/dvb-frontends/drx39xyj/drxj.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c b/drivers/media/dvb-frontends/drx39xyj/drxj.c index bf9e4ef35684..1dff59ca21a1 100644 --- a/drivers/media/dvb-frontends/drx39xyj/drxj.c +++ b/drivers/media/dvb-frontends/drx39xyj/drxj.c @@ -2347,6 +2347,7 @@ hi_command(struct i2c_device_addr *dev_addr, const struct drxj_hi_cmd *cmd, u16 do { nr_retries++; if (nr_retries > DRXJ_MAX_RETRIES) { + rc = -ETIMEDOUT; pr_err("timeout\n"); goto rw_error; } |