Skip to contentSkip to conversation

drivers/staging/winbond boolean negation and bitwise operation

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

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/staging/winbond boolean negation and bitwise operation

From: Diego Liziero <[email protected]>

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-30079-9c4ec4-mds.c renamed from drivers/staging/winbond/mds.c +1 -1
diff = 
@@ -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