Tag: d86d3a0101d958988a715abb7ea4687690f0b52f

Staging: comedi: Correct use of ! and &

Author: Julia Lawall <julia@diku.dk> 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 | – …

Continue reading