summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2022-11-28 16:44:47 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-12-06 10:15:22 +0300
commitdc8239bd8979e66fd92d1fc41e8aa69fde4257b3 (patch)
tree16422cc230e77fbe531c92aa7cb1963e35604418
parentba8676a3de790723211be3c63187315c6fb7bd07 (diff)
downloadlinux-dc8239bd8979e66fd92d1fc41e8aa69fde4257b3.tar.xz
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>
-rw-r--r--drivers/media/dvb-frontends/drx39xyj/drxj.c1
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;
}