Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev veriexec(4): Omit needless device crud in veriexec.c.
details: https://anonhg.NetBSD.org/src/rev/ba665306ec0a
branches: trunk
changeset: 361144:ba665306ec0a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Feb 12 02:40:48 2022 +0000
description:
veriexec(4): Omit needless device crud in veriexec.c.
diffstat:
sys/dev/veriexec.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diffs (48 lines):
diff -r ba4c9a3b2c1a -r ba665306ec0a sys/dev/veriexec.c
--- a/sys/dev/veriexec.c Sat Feb 12 02:40:39 2022 +0000
+++ b/sys/dev/veriexec.c Sat Feb 12 02:40:48 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: veriexec.c,v 1.2 2021/06/21 03:11:05 christos Exp $ */
+/* $NetBSD: veriexec.c,v 1.3 2022/02/12 02:40:48 riastradh Exp $ */
/*-
* Copyright (c) 2005, 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: veriexec.c,v 1.2 2021/06/21 03:11:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: veriexec.c,v 1.3 2022/02/12 02:40:48 riastradh Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -43,8 +43,7 @@
#include <sys/proc.h>
#include <sys/ioctl.h>
-#include <sys/device.h>
-#define DEVPORT_DEVICE struct device
+#include <sys/device_if.h>
#include <prop/proplib.h>
@@ -53,10 +52,6 @@
static dev_type_close(veriexecclose);
static dev_type_ioctl(veriexecioctl);
-struct veriexec_softc {
- DEVPORT_DEVICE veriexec_dev;
-};
-
const struct cdevsw veriexec_cdevsw = {
.d_open = veriexecopen,
.d_close = veriexecclose,
@@ -76,7 +71,7 @@
static unsigned int veriexec_dev_usage = 0;
void
-veriexecattach(DEVPORT_DEVICE *parent, DEVPORT_DEVICE *self, void *aux)
+veriexecattach(device_t parent, device_t self, void *aux)
{
veriexec_dev_usage = 0;
}
Home |
Main Index |
Thread Index |
Old Index