From 9c11e6af89c3a9c50e52af5fa2645936dc7eff5d Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 8 Apr 2022 17:25:14 -0700 Subject: [PATCH] sbni: Use memset to clear flags structure in attach. NFC, just less nausea-inducing. --- sys/dev/sbni/if_sbni_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sbni/if_sbni_pci.c b/sys/dev/sbni/if_sbni_pci.c index abd24df842a..774510ef223 100644 --- a/sys/dev/sbni/if_sbni_pci.c +++ b/sys/dev/sbni/if_sbni_pci.c @@ -134,7 +134,7 @@ sbni_pci_attach(device_t dev) goto attach_failed; } - *(u_int32_t*)&flags = 0; + memset(&flags, 0, sizeof(flags)); error = sbni_attach(sc, device_get_unit(dev) * 2, flags); if (error) {