diff options
author | Stefan Roese <sr@denx.de> | 2020-03-05 09:21:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-17 19:32:36 +0300 |
commit | f14bfa7ec6a5ec79e1c8dd48571b740922439912 (patch) | |
tree | e86b42c2eb3d110981fc4b46d3015cc5a42f5d9c /cmd | |
parent | 54de244c4779b452cc9314f475798d984fd27d0a (diff) | |
download | u-boot-f14bfa7ec6a5ec79e1c8dd48571b740922439912.tar.xz |
cmd: mem: Use IS_ENABLED instead of alt_test variable
This patch uses the IS_ENABLED() macro to check, which mtest variant
is enabled.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/mem.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -875,11 +875,6 @@ static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc, ulong errs = 0; /* number of errors, or -1 if interrupted */ ulong pattern = 0; int iteration; -#if defined(CONFIG_SYS_ALT_MEMTEST) - const int alt_test = 1; -#else - const int alt_test = 0; -#endif start = CONFIG_SYS_MEMTEST_START; end = CONFIG_SYS_MEMTEST_END; @@ -921,7 +916,7 @@ static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc, printf("Iteration: %6d\r", iteration + 1); debug("\n"); - if (alt_test) { + if (IS_ENABLED(CONFIG_SYS_ALT_MEMTEST)) { errs = mem_test_alt(buf, start, end, dummy); } else { errs = mem_test_quick(buf, start, end, pattern, |