Commit dc8239bd authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent ba8676a3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
			}