Skip to content

Commit 14b6f49

Browse files
finikorgcarlescufi
authored andcommitted
lib: bitarray: Remove dead statement
Remove dead code since we go out of the loop after break statement. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 3f69745 commit 14b6f49

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/os/bitarray.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,6 @@ int sys_bitarray_alloc(sys_bitarray_t *bitarray, size_t num_bits,
435435
while (bit_idx <= off_end) {
436436
if (match_region(bitarray, bit_idx, num_bits, false,
437437
&bd, &mismatch)) {
438-
off_end = bit_idx + num_bits - 1;
439-
440438
set_region(bitarray, bit_idx, num_bits, true, &bd);
441439

442440
*offset = bit_idx;

0 commit comments

Comments
 (0)