[PATCH 2/4] log: Drop #ifdef in log_test

Simon Glass sjg at chromium.org
Sat Sep 12 20:28:48 CEST 2020


This is not needed as the Makefile only builds the file if CONFIG_LOG_TEST
is enabled. Drop it.

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

 test/log/log_test.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/test/log/log_test.c b/test/log/log_test.c
index 4245372d65f..fdee5e6757f 100644
--- a/test/log/log_test.c
+++ b/test/log/log_test.c
@@ -201,7 +201,6 @@ static int log_test(int testnum)
 	return 0;
 }
 
-#ifdef CONFIG_LOG_TEST
 int do_log_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
 	int testnum = 0;
@@ -216,4 +215,3 @@ int do_log_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 
 	return ret ? CMD_RET_FAILURE : 0;
 }
-#endif
-- 
2.28.0.618.gf4bc123cb7-goog



More information about the U-Boot mailing list