media: cxd2880: remove unused vars
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Mar 2018 10:11:29 +0000 (05:11 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Mar 2018 10:12:59 +0000 (05:12 -0500)
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>
drivers/media/dvb-frontends/cxd2880/cxd2880_top.c

index 05360a11bea9dcc8cf4ef610598bcaf4a50e48ad..d474dc1b05da4e961c83a58ef48667117333517a 100644 (file)
@@ -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: