Skip to content

Commit

Permalink
libsel4allocman: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <axelheider@gmx.de>
  • Loading branch information
axel-h committed Apr 15, 2024
1 parent 96cb46f commit 070911a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libsel4allocman/src/bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1011,10 +1011,7 @@ static int handle_device_untyped_cap(add_untypeds_state_t *state, uintptr_t padd
bool cap_tainted = false;
int error;
uintptr_t ut_end = paddr + BIT(size_bits);
int num_regions = 0;
if (state != NULL) {
num_regions = state->num_regions;
}
int num_regions = state ? state->num_regions : 0;
for (int i = 0; i < num_regions; i++) {
pmem_region_t *region = &state->regions[i];
uint64_t region_end = region->base_addr + region->length;
Expand Down

0 comments on commit 070911a

Please sign in to comment.