aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2000-06-25 19:06:48 +0000
committerMark Murray <markm@FreeBSD.org>2000-06-25 19:06:48 +0000
commit8567cb9f5d39497d67006ad5a804c8d9ab5c0b01 (patch)
treef009d7bd60f3c9304cc395b4e5b6fa5cded32389
parent39d9385710d71e4da925b4dac2d01adde7619ee7 (diff)
Notes
-rw-r--r--sys/amd64/amd64/mem.c2
-rw-r--r--sys/i386/i386/mem.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c
index a9538db71e399..7b6baff08937e 100644
--- a/sys/amd64/amd64/mem.c
+++ b/sys/amd64/amd64/mem.c
@@ -217,10 +217,10 @@ memmmap(dev_t dev, vm_offset_t offset, int prot)
/* minor device 1 is kernel memory */
case 1:
return i386_btop(vtophys(offset));
- }
default:
return -1;
+ }
}
/*
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c
index a9538db71e399..7b6baff08937e 100644
--- a/sys/i386/i386/mem.c
+++ b/sys/i386/i386/mem.c
@@ -217,10 +217,10 @@ memmmap(dev_t dev, vm_offset_t offset, int prot)
/* minor device 1 is kernel memory */
case 1:
return i386_btop(vtophys(offset));
- }
default:
return -1;
+ }
}
/*