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:
e3ec4fd
)
usb: hub: remove assignment from if condition
author
Kris Borer
<kborer@gmail.com>
Tue, 11 Aug 2015 15:12:45 +0000
(11:12 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 14 Aug 2015 23:54:02 +0000
(16:54 -0700)
Fix one occurrence of the checkpatch.pl error:
ERROR: do not use assignment in if condition
The semantic patch that makes this change is:
// <smpl>
@@
identifier i;
expression E, E2, E3;
statement S1, S2;
binary operator b;
@@
+ i = E;
if (
- (i = E)
+ i
b
... && E2 && E3 ) S1 else S2
// </smpl>
Signed-off-by: Kris Borer <kborer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
patch
|
blob
|
history
diff --cc
drivers/usb/core/hub.c
Simple merge