提交 54de244c 编写于 作者: S Stefan Roese 提交者: Tom Rini

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: NStefan Roese <sr@denx.de>
上级 a8c708ea
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册