diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-11-05 18:59:00 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-11-05 18:59:00 +0000 |
commit | cf732b4dbb21d38c90af004a3cf93f52b5b9e3fe (patch) | |
tree | 4b73eb10ab3c66286c94869ca0798a37c95c637d /sys/dev/ic | |
parent | 80a6a180589321a8933ead88fa66f53793ffc19a (diff) |
The first field of struct cfdriver is a pointer. Put NULL rather than 0 here.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/bcmgenet.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/dc.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/mtd8xx.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/re.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/smc83c170.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/xl.c | 4 |
7 files changed, 14 insertions, 14 deletions
diff --git a/sys/dev/ic/bcmgenet.c b/sys/dev/ic/bcmgenet.c index 9054c57bac3..8305d2d1429 100644 --- a/sys/dev/ic/bcmgenet.c +++ b/sys/dev/ic/bcmgenet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcmgenet.c,v 1.7 2023/11/10 15:51:20 bluhm Exp $ */ +/* $OpenBSD: bcmgenet.c,v 1.8 2024/11/05 18:58:59 miod Exp $ */ /* $NetBSD: bcmgenet.c,v 1.3 2020/02/27 17:30:07 jmcneill Exp $ */ /*- @@ -82,7 +82,7 @@ CTASSERT(MCLBYTES == 2048); bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, (reg), (val)) struct cfdriver bse_cd = { - 0, "bse", DV_IFNET + NULL, "bse", DV_IFNET }; int diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index c60c1c326a2..fda85b84140 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.158 2024/08/31 16:23:09 deraadt Exp $ */ +/* $OpenBSD: dc.c,v 1.159 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -3110,5 +3110,5 @@ dc_detach(struct dc_softc *sc) } struct cfdriver dc_cd = { - 0, "dc", DV_IFNET + NULL, "dc", DV_IFNET }; diff --git a/sys/dev/ic/mtd8xx.c b/sys/dev/ic/mtd8xx.c index 2b58cd054c5..43bef7e86b8 100644 --- a/sys/dev/ic/mtd8xx.c +++ b/sys/dev/ic/mtd8xx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mtd8xx.c,v 1.35 2022/01/09 05:42:38 jsg Exp $ */ +/* $OpenBSD: mtd8xx.c,v 1.36 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru> @@ -1059,5 +1059,5 @@ mtd_txeof(struct mtd_softc *sc) } struct cfdriver mtd_cd = { - 0, "mtd", DV_IFNET + NULL, "mtd", DV_IFNET }; diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index a8967f686df..17d783653b0 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.218 2024/08/12 06:47:11 dlg Exp $ */ +/* $OpenBSD: re.c,v 1.219 2024/11/05 18:58:59 miod Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -205,7 +205,7 @@ void re_kstat_detach(struct rl_softc *); void in_delayed_cksum(struct mbuf *); struct cfdriver re_cd = { - 0, "re", DV_IFNET + NULL, "re", DV_IFNET }; #define EE_SET(x) \ diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 6beca05a8e5..edf9ff6d233 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.99 2024/08/31 16:23:09 deraadt Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.100 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1368,5 +1368,5 @@ rl_detach(struct rl_softc *sc) } struct cfdriver rl_cd = { - 0, "rl", DV_IFNET + NULL, "rl", DV_IFNET }; diff --git a/sys/dev/ic/smc83c170.c b/sys/dev/ic/smc83c170.c index c74885afe1f..ae9014b554d 100644 --- a/sys/dev/ic/smc83c170.c +++ b/sys/dev/ic/smc83c170.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smc83c170.c,v 1.31 2023/11/10 15:51:20 bluhm Exp $ */ +/* $OpenBSD: smc83c170.c,v 1.32 2024/11/05 18:58:59 miod Exp $ */ /* $NetBSD: smc83c170.c,v 1.59 2005/02/27 00:27:02 perry Exp $ */ /*- @@ -91,7 +91,7 @@ int epic_mediachange(struct ifnet *); void epic_mediastatus(struct ifnet *, struct ifmediareq *); struct cfdriver epic_cd = { - 0, "epic", DV_IFNET + NULL, "epic", DV_IFNET }; #define INTMASK (INTSTAT_FATAL_INT | INTSTAT_TXU | \ diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index dbeaeb76acf..33bc6594b09 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.140 2024/08/31 16:23:09 deraadt Exp $ */ +/* $OpenBSD: xl.c,v 1.141 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2654,5 +2654,5 @@ xl_wol(struct ifnet *ifp, int enable) #endif struct cfdriver xl_cd = { - 0, "xl", DV_IFNET + NULL, "xl", DV_IFNET }; |