]> Git Repo - J-linux.git/commitdiff
media: dvb-pll: don't re-validate tuner frequencies
authorMauro Carvalho Chehab <[email protected]>
Fri, 23 Nov 2018 17:10:57 +0000 (12:10 -0500)
committerMauro Carvalho Chehab <[email protected]>
Tue, 27 Nov 2018 18:51:32 +0000 (13:51 -0500)
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: a3f90c75b833 ("media: dvb: convert tuner_info frequencies to Hz")
Reported-by: Stakanov Schufter <[email protected]>
Reported-by: Takashi Iwai <[email protected]>
Cc: [email protected] # For 4.19
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/dvb-frontends/dvb-pll.c

index fff5816f6ec485d9d589bc33d30a9290ff44351f..29836c1a40e987985937f89dc7574ca6205a489e 100644 (file)
@@ -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;
This page took 0.057574 seconds and 4 git commands to generate.