mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
sbni: Use memset to clear flags structure in attach.
NFC, just less nausea-inducing.
This commit is contained in:
parent
1d0cadccf8
commit
9c11e6af89
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue