summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-01-14 20:50:50 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-01-14 20:50:50 +0000
commit1e98c85d3254b46ed8d216477a5adf8580834616 (patch)
treec7808266b235b44443cbe152cb637731c588561b /sys/dev
parentf6626fb981dd9d4254dfc7db5c4ca0d5a8d551bd (diff)
Do not fill more than the first three fields of cfdriver structures unless
necessary. No functional change.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/trm.c8
-rw-r--r--sys/dev/raidframe/rf_openbsdkintf.c4
-rw-r--r--sys/dev/ramdisk.c4
3 files changed, 6 insertions, 10 deletions
diff --git a/sys/dev/ic/trm.c b/sys/dev/ic/trm.c
index e8a436c645f..022cd5f9095 100644
--- a/sys/dev/ic/trm.c
+++ b/sys/dev/ic/trm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trm.c,v 1.3 2003/11/08 19:17:28 jmc Exp $
+/* $OpenBSD: trm.c,v 1.4 2004/01/14 20:50:49 miod Exp $
* ------------------------------------------------------------
* O.S : OpenBSD
* File Name : trm.c
@@ -129,11 +129,7 @@ void trm_print_info(struct trm_softc *, struct trm_dcb *);
* Define structures
*/
struct cfdriver trm_cd = {
- NULL,
- "trm",
- DV_DULL,
- 0,
- 0
+ NULL, "trm", DV_DULL
};
struct scsi_adapter trm_switch = {
diff --git a/sys/dev/raidframe/rf_openbsdkintf.c b/sys/dev/raidframe/rf_openbsdkintf.c
index bf7416c893e..24f5d0c3eef 100644
--- a/sys/dev/raidframe/rf_openbsdkintf.c
+++ b/sys/dev/raidframe/rf_openbsdkintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_openbsdkintf.c,v 1.24 2003/06/02 23:28:03 millert Exp $ */
+/* $OpenBSD: rf_openbsdkintf.c,v 1.25 2004/01/14 20:50:49 miod Exp $ */
/* $NetBSD: rf_netbsdkintf.c,v 1.109 2001/07/27 03:30:07 oster Exp $ */
/*-
@@ -202,7 +202,7 @@ struct raidbuf {
* compatible with such practice.
*/
struct cfdriver raid_cd = {
- NULL, "raid", DV_DISK, NULL, 0
+ NULL, "raid", DV_DISK
};
/*
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c
index 0a1530e9a0e..7d517bca715 100644
--- a/sys/dev/ramdisk.c
+++ b/sys/dev/ramdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ramdisk.c,v 1.22 2003/10/21 05:24:40 jmc Exp $ */
+/* $OpenBSD: ramdisk.c,v 1.23 2004/01/14 20:50:49 miod Exp $ */
/* $NetBSD: ramdisk.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */
/*
@@ -110,7 +110,7 @@ struct disklabel *rdgetdisklabel(dev_t dev, struct rd_softc *sc);
* XXX - that practice is questionable...
*/
struct cfdriver rd_cd = {
- NULL, "rd", DV_DULL, NULL, 0
+ NULL, "rd", DV_DULL
};
void rdstrategy(struct buf *bp);