]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
usb: dwc2: fix duplicate argument warning
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Mon, 12 Oct 2015 09:23:27 +0000 (11:23 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 13 Oct 2015 18:17:42 +0000 (13:17 -0500)
Fix a duplicate argument warning reported by 0-DAY kernel test
infrastructure in the following patch:
77dbf71 usb: dwc2: host: add disconnect interrupt to host only interrupts

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.c

index bf5e951fbb7f8b400aa96e6bceb1792856119b3d..ef73e498e98fc85501ff65cbeeaa20cd13ec9c4c 100644 (file)
@@ -863,8 +863,7 @@ void dwc2_enable_host_interrupts(struct dwc2_hsotg *hsotg)
 
        /* Enable host mode interrupts without disturbing common interrupts */
        intmsk = dwc2_readl(hsotg->regs + GINTMSK);
-       intmsk |= GINTSTS_DISCONNINT | GINTSTS_PRTINT | GINTSTS_HCHINT |
-                       GINTSTS_DISCONNINT;
+       intmsk |= GINTSTS_DISCONNINT | GINTSTS_PRTINT | GINTSTS_HCHINT;
        dwc2_writel(intmsk, hsotg->regs + GINTMSK);
 }