From bca0668a92f4ea6fcba91013c8fea7bc25f32cc9 Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Thu, 27 Feb 2003 14:48:53 +0000 Subject: [PATCH] We can now properly return ENODEV in nommap(), so do it. Remove the now wrong comment which says we can't. --- sys/kern/subr_xxx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/subr_xxx.c b/sys/kern/subr_xxx.c index 65e40965e2b9..85ec59b5256c 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