diff mbox series

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

Message ID 20200912122845.2.I1876ad40f81df5ad7684a538aa1c6da0f82f0bf2@changeid
State Accepted
Delegated to: Tom Rini
Headers show
Series log: Fix the syslog spam when running tests | expand

Commit Message

Simon Glass Sept. 12, 2020, 6:28 p.m. UTC
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@chromium.org>
---

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

Comments

Tom Rini Oct. 12, 2020, 1:14 a.m. UTC | #1
On Sat, Sep 12, 2020 at 12:28:48PM -0600, Simon Glass wrote:

> 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@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

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