Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev don't enumerate individual minor number cases in mmi...
details: https://anonhg.NetBSD.org/src/rev/366a4b069dc1
branches: trunk
changeset: 556560:366a4b069dc1
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Dec 20 16:22:14 2003 +0000
description:
don't enumerate individual minor number cases in mmioctl(), handle all
as single 'default' case
adresses part of port-arm/23581 by Richard Earnshaw
diffstat:
sys/dev/mm.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diffs (39 lines):
diff -r 9ea01718cc5f -r 366a4b069dc1 sys/dev/mm.c
--- a/sys/dev/mm.c Sat Dec 20 16:12:27 2003 +0000
+++ b/sys/dev/mm.c Sat Dec 20 16:22:14 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm.c,v 1.5 2003/09/21 19:16:55 jdolecek Exp $ */
+/* $NetBSD: mm.c,v 1.6 2003/12/20 16:22:14 jdolecek Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mm.c,v 1.5 2003/09/21 19:16:55 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mm.c,v 1.6 2003/12/20 16:22:14 jdolecek Exp $");
/*
* Memory special file
@@ -64,10 +64,7 @@
struct proc *p;
{
switch (minor(dev)) {
- case DEV_MEM:
- case DEV_KMEM:
- case DEV_NULL:
- case DEV_ZERO:
+ default:
switch (cmd) {
case FIONBIO: /* We never block anyway */
return 0;
@@ -81,8 +78,6 @@
return 0;
/*FALLTHROUGH*/
}
- /*FALLTHROUGH*/
- default:
return EOPNOTSUPP;
}
}
Home |
Main Index |
Thread Index |
Old Index