mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 01:20:01 -04:00
[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: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
@@ -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);
|
||||
if (rc < 0) {
|
||||
pr_err("Couldn't read firmware %s\n", mc_file);
|
||||
return -ENOENT;
|
||||
return rc;
|
||||
}
|
||||
demod->firmware = fw;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user