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>
This commit is contained in:
parent
a8c708ea9f
commit
54de244c47
14
cmd/mem.c
14
cmd/mem.c
@ -932,18 +932,8 @@ static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc,
|
|||||||
count += errs;
|
count += errs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
unmap_sysmem((void *)buf);
|
||||||
* Work-around for eldk-4.2 which gives this warning if we try to
|
unmap_sysmem((void *)dummy);
|
||||||
* 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (errs == -1UL) {
|
if (errs == -1UL) {
|
||||||
/* Memory test was aborted - write a newline to finish off */
|
/* Memory test was aborted - write a newline to finish off */
|
||||||
|
Loading…
Reference in New Issue
Block a user