eldbus: don't abs() an unsigned value

clang complained about abs() being used on an unsigned integer.
Calling abs() is actually unnecessary.
This commit is contained in:
Jean Guyomarc'h 2017-03-09 22:19:03 +01:00
parent 660259b46d
commit 7ef27a4669
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ _type_offset(unsigned base, unsigned size)
unsigned padding;
if (!(base % size))
return base;
padding = abs(base - size);
padding = base - size;
return base + padding;
}