Skip to contentSkip to conversation

drivers/isdn boolean negation and bitwise operation in

PATCH New Diego Liziero 1 participant 1 message Apr 14, 2009 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 drivers/isdn boolean negation and bitwise operation in

From: Diego Liziero <[email protected]>

(Sorry, I forgot to put [1/2] in the previous mail subject)

The semantic patch that makes this change is:
(http://www.emn.fr/x-info/coccinelle/)

@@ expression E; constant C; @@
(
- !E = C
+ E != C
)

---

tmp/cocci-output-25310-4eeefc-hscx_irq.c renamed from drivers/isdn/hisax/hscx_irq.c +1 -1
diff = 
@@ -32,7 +32,7 @@ waitforXFW(struct IsdnCardState *cs, int
 {
 	int to = 50;
 
-	while ((!(READHSCX(cs, hscx, HSCX_STAR) & 0x44) = 0x40) && to) {
+	while (((READHSCX(cs, hscx, HSCX_STAR) & 0x44) != 0x40) && to) {
 		udelay(1);
 		to--;
 	}