2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 23:53:55 +08:00

[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>
This commit is contained in:
Michael Büsch 2013-02-07 12:13:13 -03:00 committed by Mauro Carvalho Chehab
parent 82f0efbcd3
commit 0917a60430

View File

@ -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,