diff options
author | Peter Chen <peter.chen@nxp.com> | 2020-06-23 05:09:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-01 14:04:04 +0200 |
commit | 8a58264128d51b8304f800fc34dc184ea9d9bd2a (patch) | |
tree | 6f6c96fa6adf60ad7309a105341dcfe2d7e1643b /drivers/usb/cdns3/ep0.c | |
parent | Merge 5.8-rc3 into usb-next (diff) | |
download | linux-8a58264128d51b8304f800fc34dc184ea9d9bd2a.tar.xz linux-8a58264128d51b8304f800fc34dc184ea9d9bd2a.zip |
usb: cdns3: ep0: delete the duplicate code
The value '0' is duplicated with USB_DIR_OUT
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Link: https://lore.kernel.org/r/20200623031001.8469-2-peter.chen@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/ep0.c')
-rw-r--r-- | drivers/usb/cdns3/ep0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/ep0.c b/drivers/usb/cdns3/ep0.c index 4bca730f6876..cdf09c09b486 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)); |