aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Liziero <diegoliz@gmail.com>2009-04-14 04:33:54 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 11:00:37 -0700
commit290d4c23506545633878132860cc7d4fac0da23e (patch)
treeb9a07f7a8d1a74e9c60aad9799b16bf472f76bf1
parent5aaeab6606dc06bea229bf2774ac1661923c2f07 (diff)
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: Diego Liziero <diegoliz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/winbond/mds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/winbond/mds.c b/drivers/staging/winbond/mds.c
index c7af09257e6..59d6d67a9f7 100644
--- a/drivers/staging/winbond/mds.c
+++ b/drivers/staging/winbond/mds.c
@@ -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