Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1615699 > unrolled thread

[PATCH v2 2/2] usb: gadget: udc: remove unnecessary variable and update function prototype

Started by"Gustavo A. R. Silva" <garsilva@embeddedor.com>
First post2017-04-04 06:40 +0200
Last post2017-04-04 06:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 2/2] usb: gadget: udc: remove unnecessary variable and  update function prototype "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-04-04 06:40 +0200

#1615699 — [PATCH v2 2/2] usb: gadget: udc: remove unnecessary variable and update function prototype

From"Gustavo A. R. Silva" <garsilva@embeddedor.com>
Date2017-04-04 06:40 +0200
Subject[PATCH v2 2/2] usb: gadget: udc: remove unnecessary variable and update function prototype
Message-ID<tsoq5-8lD-1@gated-at.bofh.it>
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>
---
Changes in v2:
 None.

 drivers/usb/gadget/udc/amd5536udc.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/usb/gadget/udc/amd5536udc.c b/drivers/usb/gadget/udc/amd5536udc.c
index 821d088..67dd209 100644
--- a/drivers/usb/gadget/udc/amd5536udc.c
+++ b/drivers/usb/gadget/udc/amd5536udc.c
@@ -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 */
-- 
2.5.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web