]> Git Repo - linux.git/commitdiff
usb: mtu3: remove useless member @busy in mtu3_ep struct
authorChunfeng Yun <[email protected]>
Mon, 27 Jul 2020 07:14:57 +0000 (15:14 +0800)
committerGreg Kroah-Hartman <[email protected]>
Wed, 29 Jul 2020 14:53:58 +0000 (16:53 +0200)
The member @busy in mtu3_ep struct is unnecessary, so remove it.

Signed-off-by: Chunfeng Yun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/mtu3/mtu3.h
drivers/usb/mtu3/mtu3_gadget.c

index 9d68f25e4c85fe870b37159b5e712e7b278a91bd..8fd83bd133199ffe0b27d2ef7212d9605abf9ad3 100644 (file)
@@ -294,7 +294,6 @@ struct mtu3_ep {
 
        int flags;
        u8 wedged;
-       u8 busy;
 };
 
 struct mtu3_request {
index 2bc9a959d8fc87aa52ccd4a621393b95c021fe21..ef9fcd5dc869e2b22894fc71000f47b4e1ce04aa 100644 (file)
@@ -17,7 +17,6 @@ __acquires(mep->mtu->lock)
 {
        struct mtu3_request *mreq;
        struct mtu3 *mtu;
-       int busy = mep->busy;
 
        mreq = to_mtu3_request(req);
        list_del(&mreq->list);
@@ -25,8 +24,6 @@ __acquires(mep->mtu->lock)
                mreq->request.status = status;
 
        mtu = mreq->mtu;
-       mep->busy = 1;
-
        trace_mtu3_req_complete(mreq);
        spin_unlock(&mtu->lock);
 
@@ -40,14 +37,12 @@ __acquires(mep->mtu->lock)
        usb_gadget_giveback_request(&mep->ep, &mreq->request);
 
        spin_lock(&mtu->lock);
-       mep->busy = busy;
 }
 
 static void nuke(struct mtu3_ep *mep, const int status)
 {
        struct mtu3_request *mreq = NULL;
 
-       mep->busy = 1;
        if (list_empty(&mep->req_list))
                return;
 
@@ -195,7 +190,6 @@ static int mtu3_gadget_ep_enable(struct usb_ep *ep,
        if (ret)
                goto error;
 
-       mep->busy = 0;
        mep->wedged = 0;
        mep->flags |= MTU3_EP_ENABLED;
        mtu->active_ep++;
This page took 0.062222 seconds and 4 git commands to generate.