usb: musb: core: remove unnecessary logical comparison
authorFelipe Balbi <balbi@ti.com>
Wed, 25 Feb 2015 20:03:23 +0000 (14:03 -0600)
committerFelipe 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

index e59ae7395ba803a35492ae9ab39f11eb85967054..8066dbab10458676af7fcfa1819de46528f286d9 100644 (file)
@@ -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