git: 143452f7609f - main - stand: Use c99 structure initialization for md device

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 24 Jul 2022 22:55:30 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=143452f7609fc232ba9ae625a1f87d12449ff55b

commit 143452f7609fc232ba9ae625a1f87d12449ff55b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-24 21:51:15 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-07-24 22:53:34 +0000

    stand: Use c99 structure initialization for md device
    
    Use c99 structure init for devsw.
    
    Sponsored by:           Netflix
---
 stand/common/md.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/stand/common/md.c b/stand/common/md.c
index 5585218b3276..e9fcac668d93 100644
--- a/stand/common/md.c
+++ b/stand/common/md.c
@@ -66,15 +66,14 @@ static int md_close(struct open_file *);
 static int md_print(int);
 
 struct devsw md_dev = {
-	"md",
-	DEVT_DISK,
-	md_init,
-	md_strategy,
-	md_open,
-	md_close,
-	noioctl,
-	md_print,
-	NULL
+	.dv_name = "md",
+	.dv_type = DEVT_DISK,
+	.dv_init = md_init,
+	.dv_strategy = md_strategy,
+	.dv_open = md_open,
+	.dv_close = md_close,
+	.dv_ioctl = noioctl,
+	.dv_print = md_print,
 };
 
 static int