summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-07 13:11:29 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-07 13:12:59 +0300
commit8239bac18a760249c800eb032acc3f66cba8df04 (patch)
treeedc142e858f49fc04ef91d82f21be6ac71ddef18 /drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
parent9ca4897be5adef66b8fe384b4365ce385e83582f (diff)
downloadlinux-8239bac18a760249c800eb032acc3f66cba8df04.tar.xz
media: cxd2880: remove unused vars
drivers/media/dvb-frontends/cxd2880/cxd2880_top.c: In function ‘cxd2880_set_ber_per_period_t’: drivers/media/dvb-frontends/cxd2880/cxd2880_top.c:677:34: warning: variable ‘c’ set but not used [-Wunused-but-set-variable] struct dtv_frontend_properties *c; ^ drivers/media/dvb-frontends/cxd2880/cxd2880_top.c: In function ‘cxd2880_set_ber_per_period_t2’: drivers/media/dvb-frontends/cxd2880/cxd2880_top.c:790:34: warning: variable ‘c’ set but not used [-Wunused-but-set-variable] struct dtv_frontend_properties *c; ^ drivers/media/dvb-frontends/cxd2880/cxd2880_top.c: In function ‘cxd2880_get_frontend’: drivers/media/dvb-frontends/cxd2880/cxd2880_top.c:1799:23: warning: variable ‘priv’ set but not used [-Wunused-but-set-variable] struct cxd2880_priv *priv = NULL; ^~~~ Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/cxd2880/cxd2880_top.c')
-rw-r--r--drivers/media/dvb-frontends/cxd2880/cxd2880_top.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c b/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
index 05360a11bea9..d474dc1b05da 100644
--- a/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
+++ b/drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
@@ -674,7 +674,6 @@ static int cxd2880_read_ber(struct dvb_frontend *fe, u32 *ber)
static int cxd2880_set_ber_per_period_t(struct dvb_frontend *fe)
{
int ret;
- struct dtv_frontend_properties *c;
struct cxd2880_priv *priv;
struct cxd2880_dvbt_tpsinfo info;
enum cxd2880_dtv_bandwidth bw = CXD2880_DTV_BW_1_7_MHZ;
@@ -691,7 +690,6 @@ static int cxd2880_set_ber_per_period_t(struct dvb_frontend *fe)
}
priv = fe->demodulator_priv;
- c = &fe->dtv_property_cache;
bw = priv->dvbt_tune_param.bandwidth;
ret = cxd2880_tnrdmd_dvbt_mon_tps_info(&priv->tnrdmd,
@@ -787,7 +785,6 @@ static int cxd2880_set_ber_per_period_t(struct dvb_frontend *fe)
static int cxd2880_set_ber_per_period_t2(struct dvb_frontend *fe)
{
int ret;
- struct dtv_frontend_properties *c;
struct cxd2880_priv *priv;
struct cxd2880_dvbt2_l1pre l1pre;
struct cxd2880_dvbt2_l1post l1post;
@@ -815,7 +812,6 @@ static int cxd2880_set_ber_per_period_t2(struct dvb_frontend *fe)
}
priv = fe->demodulator_priv;
- c = &fe->dtv_property_cache;
bw = priv->dvbt2_tune_param.bandwidth;
ret = cxd2880_tnrdmd_dvbt2_mon_l1_pre(&priv->tnrdmd, &l1pre);
@@ -1796,7 +1792,6 @@ static int cxd2880_get_frontend_t2(struct dvb_frontend *fe,
static int cxd2880_get_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *props)
{
- struct cxd2880_priv *priv = NULL;
int ret;
if (!fe || !props) {
@@ -1804,8 +1799,6 @@ static int cxd2880_get_frontend(struct dvb_frontend *fe,
return -EINVAL;
}
- priv = fe->demodulator_priv;
-
pr_debug("system=%d\n", fe->dtv_property_cache.delivery_system);
switch (fe->dtv_property_cache.delivery_system) {
case SYS_DVBT: