diff options
author | Felipe Balbi <balbi@ti.com> | 2015-02-25 15:03:23 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-10 16:33:24 -0400 |
commit | 896f7ea37f53666a72080d0958213d12ae59deaa (patch) | |
tree | 83b3b3392ca34d6b90b9c0a20a91c5d3a42a166f /drivers/usb/musb/musb_core.c | |
parent | ab7580c1479f9cc9d6a70a5184687a4d807fc612 (diff) |
usb: musb: core: remove unnecessary logical comparison
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>
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index e59ae7395ba8..8066dbab1045 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -879,7 +879,7 @@ b_host: | |||
879 | */ | 879 | */ |
880 | if (int_usb & MUSB_INTR_RESET) { | 880 | if (int_usb & MUSB_INTR_RESET) { |
881 | handled = IRQ_HANDLED; | 881 | handled = IRQ_HANDLED; |
882 | if ((devctl & MUSB_DEVCTL_HM) != 0) { | 882 | if (devctl & MUSB_DEVCTL_HM) { |
883 | /* | 883 | /* |
884 | * Looks like non-HS BABBLE can be ignored, but | 884 | * Looks like non-HS BABBLE can be ignored, but |
885 | * HS BABBLE is an error condition. For HS the solution | 885 | * HS BABBLE is an error condition. For HS the solution |