usb: dwc3: gadget: remove unused 'first_trb_index'
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 6 Oct 2016 07:55:15 +0000 (10:55 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:31 +0000 (10:38 +0200)
Recent changes have turned this field obsolete. Remove it.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c

index 18e4c09..bdd3787 100644 (file)
@@ -705,7 +705,6 @@ struct dwc3_hwparams {
  * @dep: struct dwc3_ep owning this request
  * @sg: pointer to first incomplete sg
  * @num_pending_sgs: counter to pending sgs
- * @first_trb_index: index to first trb used by this request
  * @epnum: endpoint number to which this request refers
  * @trb: pointer to struct dwc3_trb
  * @trb_dma: DMA address of @trb
@@ -720,7 +719,6 @@ struct dwc3_request {
        struct scatterlist      *sg;
 
        unsigned                num_pending_sgs;
-       u8                      first_trb_index;
        u8                      epnum;
        struct dwc3_trb         *trb;
        dma_addr_t              trb_dma;
index 45a3325..2dfcbec 100644 (file)
@@ -832,7 +832,6 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep,
                dwc3_gadget_move_started_request(req);
                req->trb = trb;
                req->trb_dma = dwc3_trb_dma_offset(dep, trb);
-               req->first_trb_index = dep->trb_enqueue;
                dep->queued_requests++;
        }