diff options
author | mux <mux@FreeBSD.org> | 2003-02-27 14:48:53 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-02-27 14:48:53 +0000 |
commit | 456a2ed517e0a6d4ab2f88c98c3e5b23b527409a (patch) | |
tree | ef11bccd66b15ba4c2b573f5b09abea674e192d1 /sys/kern | |
parent | 9011e44e2d7cb002bfbb4230fc0ae63c1eaaddac (diff) | |
download | FreeBSD-src-456a2ed517e0a6d4ab2f88c98c3e5b23b527409a.zip FreeBSD-src-456a2ed517e0a6d4ab2f88c98c3e5b23b527409a.tar.gz |
We can now properly return ENODEV in nommap(), so do it.
Remove the now wrong comment which says we can't.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_xxx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/subr_xxx.c b/sys/kern/subr_xxx.c index 65e4096..85ec59b 100644 --- a/sys/kern/subr_xxx.c +++ b/sys/kern/subr_xxx.c @@ -139,8 +139,7 @@ nommap(dev, offset, paddr, nprot) int nprot; { - /* Don't return ENODEV. That would allow mapping address ENODEV! */ - return (-1); + return (ENODEV); } int |