alloc: refactor

This commit is contained in:
Matheus
2026-04-01 16:53:16 -03:00
parent 7509d17f1c
commit 4e8f925156
2 changed files with 60 additions and 36 deletions
+2
View File
@@ -230,6 +230,8 @@ int vionet_newdevice(viodevice_t *viodevice) {
char name[10];
snprintf(name, 10, "vionet%d", netdev->id);
netdev->netdev.flags = NETDEV_FLAGS_UP | NETDEV_FLAGS_BROADCAST | NETDEV_FLAGS_RUNNING;
__assert(netdev_register((netdev_t *)netdev, name) == 0);
return 0;