summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Endriss <o.endriss@gmx.de>2007-07-24 02:14:10 +0200
committerOliver Endriss <o.endriss@gmx.de>2007-07-24 02:14:10 +0200
commitd0ccc4154b14a4a997095cf4d7e32d2534636dd6 (patch)
treebc4ddc362e221131a13ec3db5cfbc16e08e7b49d
parent1aae159fd7aa139ede4e5a41d211d6e1fc960159 (diff)
downloadmediapointer-dvb-s2-d0ccc4154b14a4a997095cf4d7e32d2534636dd6.tar.gz
mediapointer-dvb-s2-d0ccc4154b14a4a997095cf4d7e32d2534636dd6.tar.bz2
tda10023: Remove range check of symbol rate
From: Oliver Endriss <o.endriss@gmx.de> Remove incorrect range check of symbol rate, spotted by the coverity checker and reported by Adrian Bunk. These range checks are performed by dvb_core now. Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
-rw-r--r--linux/drivers/media/dvb/frontends/tda10023.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda10023.c b/linux/drivers/media/dvb/frontends/tda10023.c
index 017748593..4f39ab926 100644
--- a/linux/drivers/media/dvb/frontends/tda10023.c
+++ b/linux/drivers/media/dvb/frontends/tda10023.c
@@ -219,12 +219,6 @@ static int tda10023_set_symbolrate (struct tda10023_state* state, u32 sr)
s16 SFIL=0;
u16 NDEC = 0;
- if (sr > (SYSCLK/(2*4)))
- sr=SYSCLK/(2*4);
-
- if (sr<870000)
- sr=870000;
-
if (sr < (u32)(SYSCLK/98.40)) {
NDEC=3;
SFIL=1;