git: 8b50c54588ba - stable/13 - stand: Use c99 structure initialization for md device

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 22:11:08 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=8b50c54588ba13d809d0bff9c2a580be900dff5a

commit 8b50c54588ba13d809d0bff9c2a580be900dff5a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-24 21:51:15 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:25 +0000

    stand: Use c99 structure initialization for md device
    
    Use c99 structure init for devsw.
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 143452f7609fc232ba9ae625a1f87d12449ff55b)
---
 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