From 489beadf61d05f40dd4ac40e4e5290502f7ad078 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 9 Aug 2025 17:35:26 +0300 Subject: format --- src/mem/ideal_alloc.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/mem/ideal_alloc.c') diff --git a/src/mem/ideal_alloc.c b/src/mem/ideal_alloc.c index 0396123..8840a17 100644 --- a/src/mem/ideal_alloc.c +++ b/src/mem/ideal_alloc.c @@ -1,12 +1,6 @@ #include #include -/** @todo almost everyone has the same def for reg, should maybe make common */ -struct reg { - struct packet pkt; - bool busy; -}; - struct region { uint64_t start, end; }; @@ -69,7 +63,8 @@ static void alloc_destroy(struct alloc *a) free(a); } -static stat alloc_receive(struct alloc *a, struct component *from, struct packet pkt) +static stat alloc_receive(struct alloc *a, struct component *from, + struct packet pkt) { (void)from; /* unused */ if (a->in.busy) @@ -80,7 +75,8 @@ static stat alloc_receive(struct alloc *a, struct component *from, struct packet return OK; } -static stat alloc_resp(struct alloc *a, enum alloc_if_ret resp, uint64_t start, uint64_t end) +static stat alloc_resp(struct alloc *a, enum alloc_if_ret resp, uint64_t start, + uint64_t end) { a->in.busy = false; -- cgit v1.3