mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
checkpatch.pl: check single statement brace
This commit is contained in:
parent
b149526d03
commit
c4b9173afd
2 changed files with 23 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue