checkpatch.pl: check single statement brace

This commit is contained in:
Johan Malm 2023-08-10 15:48:52 +01:00 committed by Johan Malm
parent b149526d03
commit c4b9173afd
2 changed files with 23 additions and 1 deletions

View file

@ -16,8 +16,9 @@
static int
round_to_increment(int val, int base, int inc)
{
if (base < 0 || inc <= 0)
if (base < 0 || inc <= 0) {
return val;
}
return base + (val - base + inc / 2) / inc * inc;
}