From patchwork Sun Jun 28 01:48:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Krause X-Patchwork-Id: 489074 X-Patchwork-Delegate: scottwood@freescale.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40278140759 for ; Sun, 28 Jun 2015 11:50:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ji8UJ9TY; dkim-atps=neutral Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 1D8051A101C for ; Sun, 28 Jun 2015 11:50:07 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ji8UJ9TY; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id A8B8E1A0359 for ; Sun, 28 Jun 2015 11:48:52 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ji8UJ9TY; dkim-atps=neutral Received: by iebmu5 with SMTP id mu5so96121396ieb.1 for ; Sat, 27 Jun 2015 18:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=U/cMgHk+th2JG0SeTgPk6EMPQNOhLkG6Tlm9RTh8kaM=; b=ji8UJ9TY7g19mx8xgJZE8xOI1KzKzmwNGZcs/80Qg0TbXqb1g4lDH53LfNctQkz0V5 WhNoucaBLj6/oXZ5/1JWjYAHLSlKHjJpPOLvbGE2Zdu/uYtkSBHewTGNqhQTJdwEH0Kn 9+UWPoDqlb0ghSm93RtlXA8us/y/WXFpOP1FjAfOQf/7kd+Kfs2j1qMBMHQD1Ujxnqys 9vQvjo0ilDRufhmuEsJ2KVvtQclpY5vLURlpu1IBgHLp+yG2OFWZi0Pmzu0NMN58vVDK 1Udo9lqp2sedazazepz1pYWKQA36n4wxE0Wzfe1ZJ2y1lkgh7erlkcdr2L7u7XNQxaON 82mg== X-Received: by 10.42.157.200 with SMTP id e8mr11341326icx.84.1435456130454; Sat, 27 Jun 2015 18:48:50 -0700 (PDT) Received: from nick-System-Product-Name.hitronhub.home (CPEbc4dfb2691f3-CMbc4dfb2691f0.cpe.net.cable.rogers.com. [99.231.110.121]) by mx.google.com with ESMTPSA id bf10sm497017igb.12.2015.06.27.18.48.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 27 Jun 2015 18:48:49 -0700 (PDT) From: Nicholas Krause To: leoli@freescale.com Subject: [PATCH] udc:Make the function txcomplete have a return type of void Date: Sat, 27 Jun 2015 21:48:44 -0400 Message-Id: <1435456124-28082-1-git-send-email-xerofoify@gmail.com> X-Mailer: git-send-email 2.1.4 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, balbi@ti.com MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 --- 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 */