git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
427eed0
)
staging: rtl8192u: delete successive assignments to the same location
author
Jiayi Ye
<yejiayily@gmail.com>
Sat, 25 Oct 2014 12:06:59 +0000
(20:06 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 07:53:26 +0000
(15:53 +0800)
Successive assignments to the same location is meaningless and can be
deleted. The Coccinelle semantic patch was used to find cases.
@@
expression e1,e2,e3;
@@
(
(<+...e1++...+>)=e2;
|
(<+...e1--...+>)=e2;
|
(<+...++e1...+>)=e2;
|
(<+...--e1...+>)=e2;
|
e1=e2;
e1 = <+...e1...+>;
|
*e1=e2;
*e1=e3;
)
Signed-off-by: Jiayi Ye <yejiayily@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_dm.c
patch
|
blob
|
history
diff --cc
drivers/staging/rtl8192u/r8192U_dm.c
Simple merge