From patchwork Mon Apr 22 14:52:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 238552 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 694772C0118 for ; Tue, 23 Apr 2013 00:53:18 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 66D914A2B0; Mon, 22 Apr 2013 16:53:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OvCoF8CMQYl7; Mon, 22 Apr 2013 16:53:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DBFEE4A2A9; Mon, 22 Apr 2013 16:52:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 11B594A25D for ; Mon, 22 Apr 2013 16:52:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rE4J+AhQ+hIH for ; Mon, 22 Apr 2013 16:52:45 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by theia.denx.de (Postfix) with ESMTPS id 0E3254A277 for ; Mon, 22 Apr 2013 16:52:34 +0200 (CEST) Received: by mail-wg0-f52.google.com with SMTP id k13so1002208wgh.7 for ; Mon, 22 Apr 2013 07:52:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:content-type :x-gm-message-state; bh=vjqaqp6S2DewxedReH30WjO2eCOQORvVKYilqA+nKH0=; b=G4iYc4DSc44g1FeCaClbaPB2eQzEHwkvXunnzu+MJNF7fFRNuJGhux/x8RlTgOQ3l3 Q1l5kExHgsEG+EEnHriALZNVTDzZtb+zNeUrV4w4aAhj8reONDQNjUIf2YNo98zUab/q GuJqoWt1a48cB9bQITDYIVv5mPx1CdUKRpOYXNQ4tA5owHEjYYm2+JZ4Yazcbili09Fu vh23xX4rMKRDs+DJ6vjPtZQ+JhxJGmwy4M7uGrQkv6aO9DlURJvfS7TeAXC6/WsVAY8n 77M1MhGaJe77dyxTC1pA5oIdlHYT9uVB4PfA7VEmbasHWt+giGKRnl+s7M/t0Ho7Kfol TjAw== X-Received: by 10.194.222.100 with SMTP id ql4mr9273037wjc.59.1366642352276; Mon, 22 Apr 2013 07:52:32 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id fp2sm20485786wib.7.2013.04.22.07.52.31 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 07:52:31 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, Albert Aribaud Date: Mon, 22 Apr 2013 16:52:03 +0200 Message-Id: X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1366642332-11185-1-git-send-email-michal.simek@xilinx.com> References: <1366642332-11185-1-git-send-email-michal.simek@xilinx.com> In-Reply-To: <98a6e4d33e61c56c76b9bd78ef5d8e74ebd1510c.1366641836.git.michal.simek@xilinx.com> References: <98a6e4d33e61c56c76b9bd78ef5d8e74ebd1510c.1366641836.git.michal.simek@xilinx.com> X-Gm-Message-State: ALoCoQmVBdX+x7NMiHM97CwY9fj+wb3riOL8uMEift+rm5/35Yi1pbFvWKve6zS93+V8ojvBPjYq Cc: Peter Crosthwaite , Jagannadha Sutradharudu Teki Subject: [U-Boot] [PATCH 05/14] net: gem: Simplify return path in zynq_gem_recv X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Remove one return from the code. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 1.8.2.1 diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 7188b9e..c0da628 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -363,11 +363,9 @@ static int zynq_gem_recv(struct eth_device *dev) if ((++priv->rxbd_current) >= RX_BUF) priv->rxbd_current = 0; - - return frame_len; } - return 0; + return frame_len; } static void zynq_gem_halt(struct eth_device *dev)