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
+4 -7
View File
@@ -52,9 +52,11 @@ typedef struct {
#define MBR_TYPE_FREE 0
#define MBR_TYPE_GPT 0xee
static mutex_t tablemutex;
static int currentid = 1;
static hashtable_t blocktable;
static MUTEX_DEFINE(tablemutex);
HASHTABLE_DEFINE_STATIC(blocktable, 10);
static blockdesc_t *getdesc(int id) {
void *ret;
@@ -307,8 +309,3 @@ void block_register(blockdesc_t *desc, char *name) {
__assert(registerdesc(permdesc, name) == 0);
}
void block_init() {
hashtable_init(&blocktable, 100);
MUTEX_INIT(&tablemutex);
}