mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 23:20:32 -04:00
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>
This commit is contained in:
@@ -879,7 +879,7 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
|
||||
*/
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user