diff mbox

[U-Boot,v2,2/6] net: Make net_transfer() a static function

Message ID 1319732672-29071-3-git-send-email-sjg@chromium.org
State Accepted, archived
Commit 165099e753aeb3a734edbdad887f964277d11ab8
Headers show

Commit Message

Simon Glass Oct. 27, 2011, 4:24 p.m. UTC
This should be a static function so it can be inlined.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
Changes in v2:
- Add net_transfer() fix

 net/tftp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Mike Frysinger Oct. 27, 2011, 9:11 p.m. UTC | #1
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
Wolfgang Denk Oct. 27, 2011, 9:38 p.m. UTC | #2
Dear Simon Glass,

In message <1319732672-29071-3-git-send-email-sjg@chromium.org> you wrote:
> This should be a static function so it can be inlined.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> Changes in v2:
> - Add net_transfer() fix
> 
>  net/tftp.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

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;