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:
527c6d7
)
USB: xhci: replace if-elseif-else with switch-case
author
Viral Mehta
<viral.mehta@einfochips.com>
Tue, 5 May 2009 10:24:23 +0000
(15:54 +0530)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 16 Jun 2009 04:44:50 +0000
(21:44 -0700)
Replace if-elseif-else with switch-case
to keep the code consistent which is semantically same
Switch-case is used here,
http://www.spinics.net/lists/linux-usb/msg17201.html
Making consistent at other places in usb/core
Also easier to read and maintain when USB4.0, 5.0, ... comes
Signed-off-by: Viral Mehta <viral.mehta@einfochips.com>
Tested-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c
patch
|
blob
|
history
diff --cc
drivers/usb/core/hcd.c
Simple merge