projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aaeab6
)
Staging winbond: boolean negation and bitwise operation in wrong order
author
Diego Liziero
<diegoliz@gmail.com>
Tue, 14 Apr 2009 02:33:54 +0000
(
04:33
+0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 19 Jun 2009 18:00:37 +0000
(11:00 -0700)
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>
drivers/staging/winbond/mds.c
patch
|
blob
|
history
diff --git
a/drivers/staging/winbond/mds.c
b/drivers/staging/winbond/mds.c
index
c7af092
..
59d6d67
100644
(file)
--- 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