aboutsummaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorMichael Büsch <m@bues.ch>2013-02-07 12:13:13 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-08 17:39:37 -0200
commit0917a60430cdd4b5d3505c240a04bb0f5927c74b (patch)
tree6a4f3997d3a3d8c3d9186306b7a7125ebe26d0e4 /drivers/media
parent82f0efbcd3c4e6bf7cdfeed5c901b812e6d30f92 (diff)
[media] fc0011: fp/fa value overflow fix
Assign the maximum instead of masking with the maximum on value overflow. Signed-off-by: Michael Buesch <m@bues.ch> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/tuners/fc0011.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/fc0011.c b/drivers/media/tuners/fc0011.c
index e4882546c28..3089f2ebcbf 100644
--- a/drivers/media/tuners/fc0011.c
+++ b/drivers/media/tuners/fc0011.c
@@ -247,8 +247,8 @@ static int fc0011_set_params(struct dvb_frontend *fe)
fa += 8;
}
if (fp > 0x1F) {
- fp &= 0x1F;
- fa &= 0xF;
+ fp = 0x1F;
+ fa = 0xF;
}
if (fa >= fp) {
dev_warn(&priv->i2c->dev,