Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 691cbbe3 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] drx-j: propagate returned error from request_firmware()



Fix a smatch warning:
	drivers/media/dvb-frontends/drx39xyj/drxj.c:11711 drx_ctrl_u_code() info: why not propagate 'rc' from request_firmware() instead of (-2)?

Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 1e5ec31a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -11708,7 +11708,7 @@ static int drx_ctrl_u_code(struct drx_demod_instance *demod,
		rc = request_firmware(&fw, mc_file, demod->i2c->dev.parent);
		rc = request_firmware(&fw, mc_file, demod->i2c->dev.parent);
		if (rc < 0) {
		if (rc < 0) {
			pr_err("Couldn't read firmware %s\n", mc_file);
			pr_err("Couldn't read firmware %s\n", mc_file);
			return -ENOENT;
			return rc;
		}
		}
		demod->firmware = fw;
		demod->firmware = fw;