Skip to content

Commit

Permalink
chore: simplify comparison logic
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrichardrinehart committed May 10, 2024
1 parent b364856 commit 89ccd41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,8 +1280,7 @@ static void bump_file_max_and_nr_open(void) {
break;
}

k = (unsigned)(nr_open);
if (k >= v) { /* Already larger */
if (unsigned(nr_open) >= v) { /* Already larger */
log_debug("Skipping bump, value is already larger.");
break;
}
Expand Down

0 comments on commit 89ccd41

Please sign in to comment.