* [PATCH 2/2] drivers/isdn boolean negation and bitwise operation in
@ 2009-04-14 2:14 Diego Liziero
0 siblings, 0 replies; only message in thread
From: Diego Liziero @ 2009-04-14 2:14 UTC (permalink / raw)
To: kernel-janitors
From: Diego Liziero <diegoliz@gmail.com>
(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
)
Signed-off-by: Diego Liziero <diegoliz@gmail.com>
---
diff =
--- ./drivers/isdn/hisax/hscx_irq.c 2009-04-13 01:21:26.000000000 +0200
+++ /tmp/cocci-output-25310-4eeefc-hscx_irq.c 2009-04-13 20:36:49.000000000 +0200
@@ -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--;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-14 2:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14 2:14 [PATCH 2/2] drivers/isdn boolean negation and bitwise operation in Diego Liziero
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.