]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5936): tda10023: Remove range check of symbol rate
authorOliver Endriss <o.endriss@gmx.de>
Tue, 24 Jul 2007 00:14:10 +0000 (21:14 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:03:29 +0000 (22:03 -0300)
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/tda10023.c

index 4bb06f97938b8638cfca51a85bf21d17af14dbdc..a00cf0f54efcbc2834a072d739d9c03d57c55dde 100644 (file)
@@ -215,12 +215,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;