summaryrefslogtreecommitdiffstats
path: root/commands/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/md.c')
-rw-r--r--commands/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/md.c b/commands/md.c
index 1ca7931ae1..2389c12d14 100644
--- a/commands/md.c
+++ b/commands/md.c
@@ -67,7 +67,7 @@ static int do_mem_md(int argc, char *argv[])
return 1;
map = memmap(fd, PROT_READ);
- if (map != (void *)-1) {
+ if (map != MAP_FAILED) {
ret = memory_display(map + start, start, size,
mode >> O_RWSIZE_SHIFT, swab);
goto out;