Skip to content

Commit

Permalink
ref: Remove always true condition
Browse files Browse the repository at this point in the history
start type is unsigned therefore it won't ever be less than 0.

Signed-off-by: Miguel Silva <[email protected]>
  • Loading branch information
miguelafsilva5 committed May 22, 2024
1 parent f4ab148 commit 75858f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

ssize_t bitmap_find_nth(bitmap_t* map, size_t size, size_t nth, size_t start, bool set)
{
if (size <= 0 || nth <= 0 || start < 0) {
if (size <= 0 || nth <= 0) {
return -1;
}

Expand Down

0 comments on commit 75858f3

Please sign in to comment.