* [PATCH] udc:Make the function txcomplete have a return type of void
@ 2015-06-28 1:48 Nicholas Krause
0 siblings, 0 replies; only message in thread
From: Nicholas Krause @ 2015-06-28 1:48 UTC (permalink / raw)
To: leoli; +Cc: balbi, linux-usb, linuxppc-dev, linux-kernel
This makes the function txcomplete have a return type of void
now due to this particular function always running successfully
nor its callers checking/using the return value from this particular
function in their own internal work.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/usb/gadget/udc/fsl_qe_udc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c
index e0822f1..8c3a1ec 100644
--- a/drivers/usb/gadget/udc/fsl_qe_udc.c
+++ b/drivers/usb/gadget/udc/fsl_qe_udc.c
@@ -1139,7 +1139,7 @@ static int qe_ep_tx(struct qe_ep *ep, struct qe_frame *frame)
/* when a bd was transmitted, the function can
* handle the tx_req, not include ep0 */
-static int txcomplete(struct qe_ep *ep, unsigned char restart)
+static void txcomplete(struct qe_ep *ep, unsigned char restart)
{
if (ep->tx_req != NULL) {
struct qe_req *req = ep->tx_req;
@@ -1184,8 +1184,6 @@ static int txcomplete(struct qe_ep *ep, unsigned char restart)
ep->sent = 0;
}
}
-
- return 0;
}
/* give a frame and a tx_req, send some data */
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-28 1:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-28 1:48 [PATCH] udc:Make the function txcomplete have a return type of void Nicholas Krause
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).