From: Julia Lawall Date: Wed, 6 Jun 2012 21:41:36 +0000 (+0200) Subject: drivers/staging/comedi/drivers/me4000.c: adjust suspicious bit operation X-Git-Tag: v3.6-rc1~100^2~870 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91211dd13bec5e87490770f5b530b39b50f5d2f8;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed