From 6f071763c3540664876a85c9c51a2bc2ad7b6d1b Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Thu, 16 Jun 2016 18:09:40 +0200 Subject: [PATCH] cleanup and set default numerator/denominator --- frontends/cxd2843.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontends/cxd2843.c b/frontends/cxd2843.c index bd672aa..9d3971d 100644 --- a/frontends/cxd2843.c +++ b/frontends/cxd2843.c @@ -1333,7 +1333,6 @@ static int read_snr(struct dvb_frontend *fe, u16 *snr); static int get_stats(struct dvb_frontend *fe) { - struct cxd_state *state = fe->demodulator_priv; struct dtv_frontend_properties *p = &fe->dtv_property_cache; u16 val; @@ -1576,7 +1575,7 @@ static int read_ber(struct dvb_frontend *fe, u32 *ber) { struct cxd_state *state = fe->demodulator_priv; struct dtv_frontend_properties *p = &fe->dtv_property_cache; - u32 n, d; + u32 n = 0, d = 1; int s = 0; *ber = 0;