summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2020-03-05 07:21:30 +0100
committerTom Rini <trini@konsulko.com>2020-04-17 12:32:36 -0400
commit54de244c4779b452cc9314f475798d984fd27d0a (patch)
treebc15249908ccbcd484b21fec7fc0bf40ceff1238 /cmd
parenta8c708ea9f84cf637bb2bd5cfdcfd2dbbe71b86f (diff)
downloadu-boot-54de244c4779b452cc9314f475798d984fd27d0a.tar.gz
cmd: mem: Drop eldk-4.2 workaround and use cast in unmap_sysmem()
Use a cast instead of the "eldk-4.2" workaround for unmap_sysmem(). Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mem.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/cmd/mem.c b/cmd/mem.c
index 9367278aa8..f519adaee2 100644
--- a/cmd/mem.c
+++ b/cmd/mem.c
@@ -932,18 +932,8 @@ static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc,
count += errs;
}
- /*
- * Work-around for eldk-4.2 which gives this warning if we try to
- * case in the unmap_sysmem() call:
- * warning: initialization discards qualifiers from pointer target type
- */
- {
- void *vbuf = (void *)buf;
- void *vdummy = (void *)dummy;
-
- unmap_sysmem(vbuf);
- unmap_sysmem(vdummy);
- }
+ unmap_sysmem((void *)buf);
+ unmap_sysmem((void *)dummy);
if (errs == -1UL) {
/* Memory test was aborted - write a newline to finish off */