From: Felipe Balbi Date: Wed, 25 Feb 2015 20:03:23 +0000 (-0600) Subject: usb: musb: core: remove unnecessary logical comparison X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=896f7ea37f53666a72080d0958213d12ae59deaa;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Felipe Balbi --- 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: */ 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