stand: Use c99 structure initialization for md device

Use c99 structure init for devsw.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-07-24 15:51:15 -06:00
parent 08585e7799
commit 143452f760

View File

@ -66,15 +66,14 @@ static int md_close(struct open_file *);
static int md_print(int); static int md_print(int);
struct devsw md_dev = { struct devsw md_dev = {
"md", .dv_name = "md",
DEVT_DISK, .dv_type = DEVT_DISK,
md_init, .dv_init = md_init,
md_strategy, .dv_strategy = md_strategy,
md_open, .dv_open = md_open,
md_close, .dv_close = md_close,
noioctl, .dv_ioctl = noioctl,
md_print, .dv_print = md_print,
NULL
}; };
static int static int