* [PATCH] drivers/isdn boolean negation and bitwise operation in wrong
@ 2009-04-14 1:52 Diego Liziero
0 siblings, 0 replies; only message in thread
From: Diego Liziero @ 2009-04-14 1:52 UTC (permalink / raw)
To: kernel-janitors
From: Diego Liziero <diegoliz@gmail.com>
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/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--;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-14 1:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14 1:52 [PATCH] drivers/isdn boolean negation and bitwise operation in wrong Diego Liziero
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).