summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_xxx.c
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-02-27 14:48:53 +0000
committermux <mux@FreeBSD.org>2003-02-27 14:48:53 +0000
commit456a2ed517e0a6d4ab2f88c98c3e5b23b527409a (patch)
treeef11bccd66b15ba4c2b573f5b09abea674e192d1 /sys/kern/subr_xxx.c
parent9011e44e2d7cb002bfbb4230fc0ae63c1eaaddac (diff)
downloadFreeBSD-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/subr_xxx.c')
-rw-r--r--sys/kern/subr_xxx.c3
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
OpenPOWER on IntegriCloud