OSDN Git Service

[media] drxd: remove a dead code
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 24 Sep 2014 19:29:45 +0000 (16:29 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 26 Sep 2014 09:47:58 +0000 (06:47 -0300)
drivers/media/dvb-frontends/drxd_hard.c:2839 drxd_init() info: ignoring unreachable code.

Firmware request/release is not at drxd_init. So, we can remove
that dead code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/drxd_hard.c

index 961641b..687e893 100644 (file)
@@ -2831,14 +2831,8 @@ static int drxd_read_status(struct dvb_frontend *fe, fe_status_t * status)
 static int drxd_init(struct dvb_frontend *fe)
 {
        struct drxd_state *state = fe->demodulator_priv;
-       int err = 0;
 
-/*     if (request_firmware(&state->fw, "drxd.fw", state->dev)<0) */
        return DRXD_init(state, NULL, 0);
-
-       err = DRXD_init(state, state->fw->data, state->fw->size);
-       release_firmware(state->fw);
-       return err;
 }
 
 static int drxd_config_i2c(struct dvb_frontend *fe, int onoff)