usb: gadget: udc: remove unnecessary variable and update function prototype
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 14 Feb 2017 22:03:02 +0000 (16:03 -0600)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:17 +0000 (10:58 +0300)
Remove unnecessary variable and update function prototype.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/amd5536udc.c

index 821d088d11679ee6ee4389358b4751f004bcee01..67dd209402638fc223ae5b85c99ba723a3d3bf64 100644 (file)
@@ -608,9 +608,8 @@ udc_alloc_request(struct usb_ep *usbep, gfp_t gfp)
 }
 
 /* frees pci pool descriptors of a DMA chain */
-static int udc_free_dma_chain(struct udc *dev, struct udc_request *req)
+static void udc_free_dma_chain(struct udc *dev, struct udc_request *req)
 {
-       int ret_val = 0;
        struct udc_data_dma *td = req->td_data;
        unsigned int i;
 
@@ -626,8 +625,6 @@ static int udc_free_dma_chain(struct udc *dev, struct udc_request *req)
                pci_pool_free(dev->data_requests, td, addr);
                addr = addr_next;
        }
-
-       return ret_val;
 }
 
 /* Frees request packet, called by gadget driver */