Skip to content

Commit

Permalink
usb: gadget: udc: net2280: Remove function resume_dma
Browse files Browse the repository at this point in the history
Function resume_dma is not used, remove it.

The reason the compiler did not catch this dead code is the inline
modifier.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Ricardo Ribalda Delgado authored and Felipe Balbi committed Jan 12, 2015
1 parent 5517525 commit 5153c21
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/usb/gadget/udc/net2280.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,11 +831,6 @@ static void start_dma(struct net2280_ep *ep, struct net2280_request *req)
start_queue(ep, tmp, req->td_dma);
}

static inline void resume_dma(struct net2280_ep *ep)
{
writel(readl(&ep->dma->dmactl) | BIT(DMA_ENABLE), &ep->dma->dmactl);
}

static inline void
queue_dma(struct net2280_ep *ep, struct net2280_request *req, int valid)
{
Expand Down

0 comments on commit 5153c21

Please sign in to comment.