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 KNF
details: https://anonhg.NetBSD.org/src/rev/36a1c5961c25
branches: trunk
changeset: 754332:36a1c5961c25
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Apr 28 06:06:11 2010 +0000
description:
KNF
diffstat:
sys/arch/hp700/dev/mem.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (66 lines):
diff -r 4a7331b230e7 -r 36a1c5961c25 sys/arch/hp700/dev/mem.c
--- a/sys/arch/hp700/dev/mem.c Wed Apr 28 06:02:20 2010 +0000
+++ b/sys/arch/hp700/dev/mem.c Wed Apr 28 06:06:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mem.c,v 1.23 2010/04/28 06:02:20 skrll Exp $ */
+/* $NetBSD: mem.c,v 1.24 2010/04/28 06:06:11 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.23 2010/04/28 06:02:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.24 2010/04/28 06:06:11 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -368,13 +368,13 @@
case DEV_NULL: /* /dev/null */
if (uio->uio_rw == UIO_WRITE)
uio->uio_resid = 0;
- return (0);
+ return 0;
case DEV_ZERO: /* /dev/zero */
/* Write to /dev/zero is ignored. */
if (uio->uio_rw == UIO_WRITE) {
uio->uio_resid = 0;
- return (0);
+ return 0;
}
/*
* On the first call, allocate and zero a page
@@ -390,10 +390,10 @@
break;
default:
- return (ENXIO);
+ return ENXIO;
}
}
- return (error);
+ return error;
}
paddr_t
@@ -401,7 +401,7 @@
{
if (minor(dev) != DEV_MEM)
- return (-1);
+ return -1;
/*
* Allow access only in RAM.
@@ -409,7 +409,7 @@
#if 0
if (off < ptoa(firstusablepage) ||
off >= ptoa(lastusablepage + 1))
- return (-1);
+ return -1;
#endif
- return (btop(off));
+ return btop(off);
}
Home |
Main Index |
Thread Index |
Old Index