usb: mtu3: remove useless member @busy in mtu3_ep struct
The member @busy in mtu3_ep struct is unnecessary, so remove it. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1595834101-13094-8-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ba428976a8
commit
bf77804b1c
|
@ -294,7 +294,6 @@ struct mtu3_ep {
|
||||||
|
|
||||||
int flags;
|
int flags;
|
||||||
u8 wedged;
|
u8 wedged;
|
||||||
u8 busy;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mtu3_request {
|
struct mtu3_request {
|
||||||
|
|
|
@ -17,7 +17,6 @@ __acquires(mep->mtu->lock)
|
||||||
{
|
{
|
||||||
struct mtu3_request *mreq;
|
struct mtu3_request *mreq;
|
||||||
struct mtu3 *mtu;
|
struct mtu3 *mtu;
|
||||||
int busy = mep->busy;
|
|
||||||
|
|
||||||
mreq = to_mtu3_request(req);
|
mreq = to_mtu3_request(req);
|
||||||
list_del(&mreq->list);
|
list_del(&mreq->list);
|
||||||
|
@ -25,8 +24,6 @@ __acquires(mep->mtu->lock)
|
||||||
mreq->request.status = status;
|
mreq->request.status = status;
|
||||||
|
|
||||||
mtu = mreq->mtu;
|
mtu = mreq->mtu;
|
||||||
mep->busy = 1;
|
|
||||||
|
|
||||||
trace_mtu3_req_complete(mreq);
|
trace_mtu3_req_complete(mreq);
|
||||||
spin_unlock(&mtu->lock);
|
spin_unlock(&mtu->lock);
|
||||||
|
|
||||||
|
@ -40,14 +37,12 @@ __acquires(mep->mtu->lock)
|
||||||
usb_gadget_giveback_request(&mep->ep, &mreq->request);
|
usb_gadget_giveback_request(&mep->ep, &mreq->request);
|
||||||
|
|
||||||
spin_lock(&mtu->lock);
|
spin_lock(&mtu->lock);
|
||||||
mep->busy = busy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nuke(struct mtu3_ep *mep, const int status)
|
static void nuke(struct mtu3_ep *mep, const int status)
|
||||||
{
|
{
|
||||||
struct mtu3_request *mreq = NULL;
|
struct mtu3_request *mreq = NULL;
|
||||||
|
|
||||||
mep->busy = 1;
|
|
||||||
if (list_empty(&mep->req_list))
|
if (list_empty(&mep->req_list))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -195,7 +190,6 @@ static int mtu3_gadget_ep_enable(struct usb_ep *ep,
|
||||||
if (ret)
|
if (ret)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
mep->busy = 0;
|
|
||||||
mep->wedged = 0;
|
mep->wedged = 0;
|
||||||
mep->flags |= MTU3_EP_ENABLED;
|
mep->flags |= MTU3_EP_ENABLED;
|
||||||
mtu->active_ep++;
|
mtu->active_ep++;
|
||||||
|
|
Loading…
Reference in New Issue