Skip to content

Commit

Permalink
V4L/DVB (5936): tda10023: Remove range check of symbol rate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oliver Endriss authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 1fab46f commit 92b3c1e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/media/dvb/frontends/tda10023.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 92b3c1e

Please sign in to comment.