Skip to content

Commit

Permalink
usb: gadget: net2272: remove unused DMA_ADDR_INVALID
Browse files Browse the repository at this point in the history
DMA_ADDR_INVALID isn't used anymore, it's safe
to remove it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 662e946 commit c36cbfc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/net2272.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ static const char * const ep_name[] = {
"ep-a", "ep-b", "ep-c",
};

#define DMA_ADDR_INVALID (~(dma_addr_t)0)
#ifdef CONFIG_USB_GADGET_NET2272_DMA
/*
* use_dma: the NET2272 can use an external DMA controller.
Expand Down Expand Up @@ -341,7 +340,6 @@ net2272_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags)
if (!req)
return NULL;

req->req.dma = DMA_ADDR_INVALID;
INIT_LIST_HEAD(&req->queue);

return &req->req;
Expand Down

0 comments on commit c36cbfc

Please sign in to comment.