diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c index a9538db71e39..7b6baff08937 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 a9538db71e39..7b6baff08937 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; + } } /*