diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-26 22:13:43 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-26 22:13:43 -0300 |
commit | 52ef68ff244a5cd4707558c9aa803ecb9c1342dc (patch) | |
tree | fbcd08f215c4a8be72989142d6c0e0b52a0d3bad /linux/drivers/media | |
parent | 640cb9f7f8d3aca8ad56e1f6a7bac42e15aa6962 (diff) | |
download | mediapointer-dvb-s2-52ef68ff244a5cd4707558c9aa803ecb9c1342dc.tar.gz mediapointer-dvb-s2-52ef68ff244a5cd4707558c9aa803ecb9c1342dc.tar.bz2 |
Fix test of bandwidth range in cx22700_set_tps()
From: Roel Kluin <roel.kluin@gmail.com>
For the bandwidth to be less than 8 MHZ and greater than 6 MHZ is logically
impossible.
Priority: normal
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/frontends/cx22700.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx22700.c b/linux/drivers/media/dvb/frontends/cx22700.c index fbd838eca..5fbc0fc37 100644 --- a/linux/drivers/media/dvb/frontends/cx22700.c +++ b/linux/drivers/media/dvb/frontends/cx22700.c @@ -155,7 +155,7 @@ static int cx22700_set_tps (struct cx22700_state *state, struct dvb_ofdm_paramet p->hierarchy_information > HIERARCHY_4) return -EINVAL; - if (p->bandwidth < BANDWIDTH_8_MHZ && p->bandwidth > BANDWIDTH_6_MHZ) + if (p->bandwidth < BANDWIDTH_8_MHZ || p->bandwidth > BANDWIDTH_6_MHZ) return -EINVAL; if (p->bandwidth == BANDWIDTH_7_MHZ) |