[U-Boot] [PATCH v2 1/9] Remove CMD_PXE's static on run_command()

Simon Glass sjg at chromium.org
Sat Dec 10 19:43:53 CET 2011


It really isn't clear why this is here and there is no comment, so
drop it.


Signed-off-by: Simon Glass <sjg at chromium.org>
---

 common/main.c    |    3 ---
 include/common.h |    2 --
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/common/main.c b/common/main.c
index e96c95a..3ebe9f1 100644
--- a/common/main.c
+++ b/common/main.c
@@ -269,9 +269,6 @@ int abortboot(int bootdelay)
 /*
  * Return 0 on success, or != 0 on error.
  */
-#ifndef CONFIG_CMD_PXE
-static inline
-#endif
 int run_command2(const char *cmd, int flag)
 {
 #ifndef CONFIG_SYS_HUSH_PARSER
diff --git a/include/common.h b/include/common.h
index 05a658c..a7d4904 100644
--- a/include/common.h
+++ b/include/common.h
@@ -261,9 +261,7 @@ int	print_buffer (ulong addr, void* data, uint width, uint count, uint linelen);
 /* common/main.c */
 void	main_loop	(void);
 int	run_command	(const char *cmd, int flag);
-#ifdef CONFIG_CMD_PXE
 int run_command2(const char *cmd, int flag);
-#endif
 int	readline	(const char *const prompt);
 int	readline_into_buffer	(const char *const prompt, char * buffer);
 int	parse_line (char *, char *[]);
-- 
1.7.3.1



More information about the U-Boot mailing list