diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-18 22:20:40 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-25 17:29:56 +0400 |
commit | f7a12fdfd6b6a6f37827d213e67930b945d3081d (patch) | |
tree | 9f7250a8739b49a53c6db7df9d47f5878a7679b9 /drivers/media | |
parent | 4ed7e7bae6a4edc90bfa82b55716e4000b584436 (diff) | |
download | linux-f7a12fdfd6b6a6f37827d213e67930b945d3081d.tar.xz |
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/tuners/r820t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index 905a10615e52..ba033fd6b717 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c @@ -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; |