From: Julia Lawall Date: Wed, 24 Dec 2008 15:23:10 +0000 (+0100) Subject: Staging: comedi: Correct use of ! and & X-Git-Tag: v2.6.30-rc1~202^2~438 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d86d3a0101d958988a715abb7ea4687690f0b52f;p=pandora-kernel.git Staging: comedi: Correct use of ! and & 0x20 has 0 as its rightmost bit and thus !inl(info->plx_regbase + PLX_INTCSR) & 0x20 is always 0. I assume that !(!inl(info->plx_regbase + PLX_INTCSR) & 0x20) was intended. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ expression E; constant C; @@ ( !E & !C | - !E & C + !(E & C) ) // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed