From: Diego Liziero <diegoliz@xxxxxxxxx> The semantic patch that makes this change is: (http://www.emn.fr/x-info/coccinelle/) @@ expression E; constant C; @@ ( - !E == C + E != C ) Signed-off-by: Diego Liziero <diegoliz@xxxxxxxxx> --- diff = --- ./drivers/isdn/hisax/diva.c 2009-04-13 01:21:26.000000000 +0200 +++ /tmp/cocci-output-25237-f6bb7c-diva.c 2009-04-13 20:36:42.000000000 +0200 @@ -382,7 +382,7 @@ MemwaitforXFW(struct IsdnCardState *cs, { int to = 50; - while ((!(MemReadHSCX(cs, hscx, HSCX_STAR) & 0x44) == 0x40) && to) { + while (((MemReadHSCX(cs, hscx, HSCX_STAR) & 0x44) != 0x40) && to) { udelay(1); to--; } -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html