diff mbox series

[1/3] usb: cdns3: ep0: delete the duplicate code

Message ID 20200623031001.8469-2-peter.chen@nxp.com (mailing list archive)
State Mainlined
Commit 8a58264128d51b8304f800fc34dc184ea9d9bd2a
Headers show
Series usb: cdns3: improvement for usb-next | expand

Commit Message

Peter Chen June 23, 2020, 3:09 a.m. UTC
The value '0' is duplicated with USB_DIR_OUT

Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
 drivers/usb/cdns3/ep0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/cdns3/ep0.c b/drivers/usb/cdns3/ep0.c
index 5aa69980e7ff..a2b9af5a80cc 100644
--- a/drivers/usb/cdns3/ep0.c
+++ b/drivers/usb/cdns3/ep0.c
@@ -610,7 +610,7 @@  static bool cdns3_check_new_setup(struct cdns3_device *priv_dev)
 {
 	u32 ep_sts_reg;
 
-	cdns3_select_ep(priv_dev, 0 | USB_DIR_OUT);
+	cdns3_select_ep(priv_dev, USB_DIR_OUT);
 	ep_sts_reg = readl(&priv_dev->regs->ep_sts);
 
 	return !!(ep_sts_reg & (EP_STS_SETUP | EP_STS_STPWAIT));