]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] staging: solo6x10: fix | vs &
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 9 Jun 2012 06:47:32 +0000 (03:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 18 Jun 2012 23:08:39 +0000 (20:08 -0300)
commit19f5a0c78573ed920a7f68de4a92603fdefa2ab6
tree38be634aa4e5c28f9f103d6c7fb12e6696d7d88e
parent86b0905516460b87542686248690337e1d703544
[media] staging: solo6x10: fix | vs &

The test here is never true because '&' was used instead of '|'.  It was
the same as:

if (status & ((1<<16) & (1<<17)) ...

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/solo6x10/i2c.c