summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorJulia Lawall2012-06-06 23:41:36 +0200
committerGreg Kroah-Hartman2012-06-12 01:54:29 +0200
commit91211dd13bec5e87490770f5b530b39b50f5d2f8 (patch)
tree947d3074c39967f47114b03936a97c39cdf949be /drivers/staging/comedi/comedi_fops.c
parentstaging: comedi: ni_labpc: unlock spinlock on command error (diff)
downloadkernel-qcow2-linux-91211dd13bec5e87490770f5b530b39b50f5d2f8.tar.gz
kernel-qcow2-linux-91211dd13bec5e87490770f5b530b39b50f5d2f8.tar.xz
kernel-qcow2-linux-91211dd13bec5e87490770f5b530b39b50f5d2f8.zip
drivers/staging/comedi/drivers/me4000.c: adjust suspicious bit operation
TRIG_ROUND_NEAREST is 0, so a bit-and with it is always false. The value TRIG_ROUND_MASK covers the bits of the TRIG_ROUND constants, so first pick those bits and then make the test using ==. The same is done for TRIG_ROUND_UP for symmetry, even though bit-and would be sufficient in this case. This problem was found using Coccinelle (http://coccinelle.lip6.fr/). Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions