Commit 290d4c23 authored by Diego Liziero's avatar Diego Liziero Committed by Greg Kroah-Hartman

Staging winbond: boolean negation and bitwise operation in wrong order

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: default avatarDiego Liziero <diegoliz@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5aaeab66
...@@ -432,7 +432,7 @@ Mds_Tx(struct wbsoft_priv * adapter) ...@@ -432,7 +432,7 @@ Mds_Tx(struct wbsoft_priv * adapter)
return; return;
//Only one thread can be run here //Only one thread can be run here
if (!atomic_inc_return(&pMds->TxThreadCount) == 1) if (atomic_inc_return(&pMds->TxThreadCount) != 1)
goto cleanup; goto cleanup;
// Start to fill the data // Start to fill the data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment