From patchwork Thu Oct 27 16:24:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 122178 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 C4F401007D8 for ; Fri, 28 Oct 2011 03:25:45 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7EA5C29602; Thu, 27 Oct 2011 18:25:44 +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 6CnUCJ5KkjEv; Thu, 27 Oct 2011 18:25:44 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CA2AB29576; Thu, 27 Oct 2011 18:25:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CAD392954C for ; Thu, 27 Oct 2011 18:25:30 +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 MWb8kLfGO0x3 for ; Thu, 27 Oct 2011 18:25:30 +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 smtp-out.google.com (smtp-out.google.com [74.125.121.67]) by theia.denx.de (Postfix) with ESMTPS id 559B229576 for ; Thu, 27 Oct 2011 18:25:29 +0200 (CEST) Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id p9RGPOYJ032751; Thu, 27 Oct 2011 09:25:24 -0700 Received: from sglass.mtv.corp.google.com (sglass.mtv.corp.google.com [172.22.72.144]) by hpaq11.eem.corp.google.com with ESMTP id p9RGPL7e017331; Thu, 27 Oct 2011 09:25:21 -0700 Received: by sglass.mtv.corp.google.com (Postfix, from userid 121222) id CA45614098F; Thu, 27 Oct 2011 09:25:20 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Thu, 27 Oct 2011 09:24:28 -0700 Message-Id: <1319732672-29071-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1319732672-29071-1-git-send-email-sjg@chromium.org> References: <1319732672-29071-1-git-send-email-sjg@chromium.org> X-System-Of-Record: true Subject: [U-Boot] [PATCH v2 2/6] net: Make net_transfer() a static function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 This should be a static function so it can be inlined. Signed-off-by: Simon Glass Acked-by: Mike Frysinger --- Changes in v2: - Add net_transfer() fix net/tftp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/tftp.c b/net/tftp.c index e34f202..81f9af4 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -198,7 +198,7 @@ store_block(unsigned block, uchar *src, unsigned len) } /* Clear our state ready for a new transfer */ -void new_transfer(void) +static void new_transfer(void) { TftpLastBlock = 0; TftpBlockWrap = 0;