* [PATCH] drivers/staging/winbond boolean negation and bitwise operation
@ 2009-04-14 2:33 Diego Liziero
0 siblings, 0 replies; only message in thread
From: Diego Liziero @ 2009-04-14 2:33 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/staging/winbond/mds.c 2009-04-13 01:21:29.000000000 +0200
+++ /tmp/cocci-output-30079-9c4ec4-mds.c 2009-04-13 20:44:20.000000000 +0200
@@ -432,7 +432,7 @@ Mds_Tx(struct wbsoft_priv * adapter)
return;
//Only one thread can be run here
- if (!atomic_inc_return(&pMds->TxThreadCount) = 1)
+ if (atomic_inc_return(&pMds->TxThreadCount) != 1)
goto cleanup;
// Start to fill the data
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-14 2:33 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:33 [PATCH] drivers/staging/winbond boolean negation and bitwise operation 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.