[media] drx-j: propagate returned error from request_firmware()
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 9 Mar 2014 13:36:24 +0000 (10:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 10:37:17 +0000 (07:37 -0300)
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>
drivers/media/dvb-frontends/drx39xyj/drxj.c

index c5205d5c997e9585a573e60742130cba4160f4c7..a26ddc9fa2bc9badeca1d255b627c006f63b2dd0 100644 (file)
@@ -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;