diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-16 20:22:40 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-19 18:00:36 (GMT) |
commit | 5355d8cac2a036471c1e739ee5aa1514973ed114 (patch) | |
tree | 83a149347a53e77fcb96f468e116c2e79c87fd03 /drivers/staging/comedi | |
parent | f71fb77c29c83ef22ebd07fffd0581f2bec69b62 (diff) | |
download | linux-fsl-qoriq-5355d8cac2a036471c1e739ee5aa1514973ed114.tar.xz |
Staging: fix operator precedence errors
`!' has a higher precedence than `&' and `|' has a higher precedence than `?'
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/drivers/pcl816.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/pcl816.c b/drivers/staging/comedi/drivers/pcl816.c index 353cdaf..19465c1 100644 --- a/drivers/staging/comedi/drivers/pcl816.c +++ b/drivers/staging/comedi/drivers/pcl816.c @@ -482,7 +482,7 @@ static int pcl816_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src) err++; - if (!cmd->convert_src & (TRIG_EXT | TRIG_TIMER)) + if (!(cmd->convert_src & (TRIG_EXT | TRIG_TIMER))) err++; tmp = cmd->scan_end_src; |