diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2007-02-24 09:14:39 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 17:53:14 -0200 |
commit | b797c206168992e8a2c080e80e39a56410cdaac0 (patch) | |
tree | c489a52b792a4b7a4efc27dd1ec845ec3f4a89cb /drivers/media/dvb/frontends/stb0899_algo.c | |
parent | b3332a983dc07d6bd35d5a97a6e3572b067e7f53 (diff) | |
download | lwn-b797c206168992e8a2c080e80e39a56410cdaac0.tar.gz lwn-b797c206168992e8a2c080e80e39a56410cdaac0.zip |
V4L/DVB (9380): FIX: a possible division by zero
Thanks to Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stb0899_algo.c')
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_algo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c index 0ae964975814..876931527c71 100644 --- a/drivers/media/dvb/frontends/stb0899_algo.c +++ b/drivers/media/dvb/frontends/stb0899_algo.c @@ -933,9 +933,9 @@ static void stb0899_dvbs2_set_btr_loopbw(struct stb0899_state *state) sym_peak *= 576000; K = (1 << config->btr_nco_bits) / (internal->master_clk / 1000); K *= (internal->srate / 1000000) * decim; /*k=k 10^-8*/ - K = sym_peak / K; if (K != 0) { + K = sym_peak / K; wn = (4 * zeta * zeta) + 1000000; wn = (2 * (loopbw_percent * 1000) * 40 * zeta) /wn; /*wn =wn 10^-8*/ |