kernel: remove some unescessary inits

This commit is contained in:
Matheus
2025-07-23 18:21:10 -03:00
parent 819551330b
commit 98be724c65
5 changed files with 9 additions and 31 deletions
+2 -7
View File
@@ -5,8 +5,8 @@
#include <string.h>
#include <logging.h>
static hashtable_t nametable;
static mutex_t tablelock;
HASHTABLE_DEFINE_STATIC(nametable, 10);
static MUTEX_DEFINE(tablelock);
static devops_t devops = {0};
@@ -37,8 +37,3 @@ netdev_t *netdev_getdev(char *name) {
MUTEX_RELEASE(&tablelock);
return netdev;
}
void netdev_init() {
__assert(hashtable_init(&nametable, 10) == 0);
MUTEX_INIT(&tablelock);
}