From: Nicholas Krause <xerofoify@gmail.com>
To: leoli@freescale.com
Cc: balbi@ti.com, linux-usb@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: [PATCH] udc:Make the function txcomplete have a return type of void
Date: Sat, 27 Jun 2015 21:48:44 -0400 [thread overview]
Message-ID: <1435456124-28082-1-git-send-email-xerofoify@gmail.com> (raw)
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
reply other threads:[~2015-06-28 1:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435456124-28082-1-git-send-email-xerofoify@gmail.com \
--to=xerofoify@gmail.com \
--cc=balbi@ti.com \
--cc=leoli@freescale.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).