projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab7580c
)
usb: musb: core: remove unnecessary logical comparison
author
Felipe Balbi
<balbi@ti.com>
Wed, 25 Feb 2015 20:03:23 +0000
(14:03 -0600)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 10 Mar 2015 20:33:24 +0000
(15:33 -0500)
devctl & MUSB_DEVCTL_HM represents a single bit,
just check for the bit, there's really no need
to compare the result against 0.
Tested-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/musb/musb_core.c
b/drivers/usb/musb/musb_core.c
index e59ae7395ba803a35492ae9ab39f11eb85967054..8066dbab10458676af7fcfa1819de46528f286d9 100644
(file)
--- a/
drivers/usb/musb/musb_core.c
+++ b/
drivers/usb/musb/musb_core.c
@@
-879,7
+879,7
@@
b_host:
*/
if (int_usb & MUSB_INTR_RESET) {
handled = IRQ_HANDLED;
- if (
(devctl & MUSB_DEVCTL_HM) != 0
) {
+ if (
devctl & MUSB_DEVCTL_HM
) {
/*
* Looks like non-HS BABBLE can be ignored, but
* HS BABBLE is an error condition. For HS the solution