Skip to content

Commit

Permalink
[media] r820t: precendence bug in r820t_xtal_check()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Apr 25, 2013
1 parent 4ed7e7b commit f7a12fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/tuners/r820t.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f7a12fd

Please sign in to comment.