Staging: comedi: pcl730: fix some bitwise vs logical AND bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Nov 2013 08:13:00 +0000 (11:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 17:09:07 +0000 (09:09 -0800)
commit9382c06e2d192adec090fb09ff0b699e951f88e1
treeb382d234185ae47af007e03da9d628e78f721bcd
parentc16975a06cfbbdedfde89e81bd00c7e0ad9de377
Staging: comedi: pcl730: fix some bitwise vs logical AND bugs

These conditions are never true because they use bitwise AND instead of
logical ands.

Fixes: b3ff824a81e8 ('staging: comedi: drivers: use comedi_dio_update_state() for complex cases')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcl730.c