Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92b3c1ec authored by Oliver Endriss's avatar Oliver Endriss Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (5936): tda10023: Remove range check of symbol rate



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: default avatarOliver Endriss <o.endriss@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 1fab46f0
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;