mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
[media] r820t: precendence bug in r820t_xtal_check()
The test as written is always false. It looks like the intent was to test that the bit was not set. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
4ed7e7bae6
commit
f7a12fdfd6
@ -1378,7 +1378,7 @@ static int r820t_xtal_check(struct r820t_priv *priv)
|
||||
rc = r820t_read(priv, 0x00, data, sizeof(data));
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
if ((!data[2]) & 0x40)
|
||||
if (!(data[2] & 0x40))
|
||||
continue;
|
||||
|
||||
val = data[2] & 0x3f;
|
||||
|
Loading…
Reference in New Issue
Block a user