Skip to content

Commit

Permalink
media: dvb-pll: don't re-validate tuner frequencies
Browse files Browse the repository at this point in the history
The dvb_frontend core already checks for the frequencies. No
need for any additional check inside the driver.

It is part of the fixes for the following bug:
  https://bugzilla.opensuse.org/show_bug.cgi?id=1116374

Fixes: a3f90c7 ("media: dvb: convert tuner_info frequencies to Hz")
Reported-by: Stakanov Schufter <stakanov@eclipso.eu>
Reported-by: Takashi Iwai <tiwai@suse.de>
Cc: stable@vger.kernel.org # For 4.19
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
  • Loading branch information
Mauro Carvalho Chehab committed Nov 27, 2018
1 parent 3d8e450 commit 3420f65
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/media/dvb-frontends/dvb-pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,6 @@ static int dvb_pll_configure(struct dvb_frontend *fe, u8 *buf,
u32 div;
int i;

if (frequency && (frequency < desc->min || frequency > desc->max))
return -EINVAL;

for (i = 0; i < desc->count; i++) {
if (frequency > desc->entries[i].limit)
continue;
Expand Down

0 comments on commit 3420f65

Please sign in to comment.