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

Simon Glass sjg at chromium.org
Thu Oct 27 18:24:28 CEST 2011


This should be a static function so it can be inlined.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
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;
-- 
1.7.3.1



More information about the U-Boot mailing list