Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp700/dev Use DEV_MEM instead of magic constant.



details:   https://anonhg.NetBSD.org/src/rev/4a7331b230e7
branches:  trunk
changeset: 754331:4a7331b230e7
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Apr 28 06:02:20 2010 +0000

description:
Use DEV_MEM instead of magic constant.

diffstat:

 sys/arch/hp700/dev/mem.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 291c8ed038b1 -r 4a7331b230e7 sys/arch/hp700/dev/mem.c
--- a/sys/arch/hp700/dev/mem.c  Wed Apr 28 00:43:16 2010 +0000
+++ b/sys/arch/hp700/dev/mem.c  Wed Apr 28 06:02:20 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mem.c,v 1.22 2010/02/10 20:32:02 skrll Exp $   */
+/*     $NetBSD: mem.c,v 1.23 2010/04/28 06:02:20 skrll Exp $   */
 
 /*     $OpenBSD: mem.c,v 1.30 2007/09/22 16:21:32 krw Exp $    */
 /*
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.22 2010/02/10 20:32:02 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.23 2010/04/28 06:02:20 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -400,7 +400,7 @@
 mmmmap(dev_t dev, off_t off, int prot)
 {
 
-       if (minor(dev) != 0)
+       if (minor(dev) != DEV_MEM)
                return (-1);
 
        /*



Home | Main Index | Thread Index | Old Index