From a95db549b25200371a4d9ddf63238e4a2043111e Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Thu, 15 Jul 2004 12:34:50 +0000 Subject: reject code_rate_LP == FEC_NONE with EINVAL --- linux/drivers/media/dvb/frontends/tda1004x.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'linux') diff --git a/linux/drivers/media/dvb/frontends/tda1004x.c b/linux/drivers/media/dvb/frontends/tda1004x.c index 9b265bde3..1368cceaa 100644 --- a/linux/drivers/media/dvb/frontends/tda1004x.c +++ b/linux/drivers/media/dvb/frontends/tda1004x.c @@ -829,11 +829,9 @@ static int tda1004x_set_fe(struct i2c_adapter *i2c, tda1004x_write_mask(i2c, tda_state, TDA1004X_IN_CONF2, 7, tmp); // set LP FEC - if (fe_params->u.ofdm.code_rate_LP != FEC_NONE) { - tmp = tda1004x_encode_fec(fe_params->u.ofdm.code_rate_LP); - if (tmp < 0) return tmp; - tda1004x_write_mask(i2c, tda_state, TDA1004X_IN_CONF2, 0x38, tmp << 3); - } + tmp = tda1004x_encode_fec(fe_params->u.ofdm.code_rate_LP); + if (tmp < 0) return tmp; + tda1004x_write_mask(i2c, tda_state, TDA1004X_IN_CONF2, 0x38, tmp << 3); // set constellation switch (fe_params->u.ofdm.constellation) { -- cgit v1.2.3