From patchwork Mon Mar 7 00:12:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Krause X-Patchwork-Id: 592603 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 6A1861402A1 for ; Mon, 7 Mar 2016 11:14:04 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=z/k0+kVc; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42A8D1A0B90 for ; Mon, 7 Mar 2016 11:14:04 +1100 (AEDT) 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=z/k0+kVc; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-qg0-x22d.google.com (mail-qg0-x22d.google.com [IPv6:2607:f8b0:400d:c04::22d]) (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 6C0BE1A01ED for ; Mon, 7 Mar 2016 11:12:48 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=z/k0+kVc; dkim-atps=neutral Received: by mail-qg0-x22d.google.com with SMTP id y89so84726876qge.2 for ; Sun, 06 Mar 2016 16:12:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=GJKjYMI+QdiT3kPrvZkFVzyElIl9U2/bC+3KeshXyMs=; b=z/k0+kVcD3KaS+9WuCUkrL08RWW4CG7wp6pfQW3qoLwKY1r0tS7l1E7+xarzw7tD3Y 42j/U8ctxGuH/RpTCkn/IJIxR7gYB6JelCxjF5FtxmNQoHuIIeqNCIY72Fqf30mDBweK 4y/qgJ7GNH5RVXnrXYNr3Nb59801i8h65NNSdgnMEtqKlT81/SU5IRYUIkJNfmUTHfji 55aO5wV8ijsU7sB4HkGB98dMPPQqu4zdWr0VUG25ASb2xsl9My3X3CtCqcrrdO7A8/dK N7CyS4/uNyxEhuJPcgRZHZWS8WURHmYhOEW3LbJOIQa33C66aHTOs80WazFXwrEQ0DTJ cerQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GJKjYMI+QdiT3kPrvZkFVzyElIl9U2/bC+3KeshXyMs=; b=gCZZ4q6D0Z6f+YA+cXNdsrXNACSev4n5aE0c1KN7ORt6Io1ZZreVfl9bVOk2izS1Xq eLFAYE2ZIv+2xU0cFoBgx1WORxhZZBMb2EqPjBUO481muJO2gCnc5U8TOhQzzZKW1NYz dibeUClzUwhPoinf+rnSyKIOOnCqcmFrThaEsYHpmQQuKJzLDJxbeW0Q2X2vCW/lBHnW aCmVuqGeDglwfiNvDWnxdeVsMQvXml0y7XrxzE9Dp2YY/yiGDBmwMw4jviLJIK6F9Hln 9YnMUB4ygUmAqBiDNkJiopTRiPBF9dd196FOZu9ottoWwvC9g4GVz+qJVDldDDIsShX8 Cm8A== X-Gm-Message-State: AD7BkJL2z8ZO/T/PDB+BmVkvpYOcdzFUu5bYhX6IHSP37wqtj7kxTY3tYNiSz8tmCkLA4w== X-Received: by 10.140.20.183 with SMTP id 52mr25453107qgj.38.1457309565973; Sun, 06 Mar 2016 16:12:45 -0800 (PST) Received: from nick-System-Product-Name.hitronhub.home (CPEbc4dfb2691f3-CMbc4dfb2691f0.cpe.net.cable.rogers.com. [99.231.110.121]) by smtp.googlemail.com with ESMTPSA id l188sm6894678qhc.10.2016.03.06.16.12.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Mar 2016 16:12:45 -0800 (PST) From: Nicholas Krause To: leoli@freescale.com Subject: [PATCH] freescale:Make the function ucc_geth_tx have a return type of void Date: Sun, 6 Mar 2016 19:12:42 -0500 Message-Id: <1457309562-18034-1-git-send-email-xerofoify@gmail.com> X-Mailer: git-send-email 2.5.0 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: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" This makes the function ucc_geth_tx have a return type of void now due to this particular function always completing without ever executing a non recoverable error. Signed-off-by: Nicholas Krause --- drivers/net/ethernet/freescale/ucc_geth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 78ebd73..70f3045 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c @@ -3226,7 +3226,7 @@ static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit return howmany; } -static int ucc_geth_tx(struct net_device *dev, u8 txQ) +static void ucc_geth_tx(struct net_device *dev, u8 txQ) { /* Start from the next BD that should be filled */ struct ucc_geth_private *ugeth = netdev_priv(dev); @@ -3269,7 +3269,6 @@ static int ucc_geth_tx(struct net_device *dev, u8 txQ) bd_status = in_be32((u32 __iomem *)bd); } ugeth->confBd[txQ] = bd; - return 0; } static int ucc_geth_poll(struct napi_struct *napi, int budget)