mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[ALSA] use the roundup macro
Use the roundup macro instead of manual calculations. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
7ab399262e
commit
201efe3793
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ int snd_seq_expand_var_event(const struct snd_seq_event *event, int count, char
|
|||
return len;
|
||||
newlen = len;
|
||||
if (size_aligned > 0)
|
||||
newlen = ((len + size_aligned - 1) / size_aligned) * size_aligned;
|
||||
newlen = roundup(len, size_aligned);
|
||||
if (count < newlen)
|
||||
return -EAGAIN;
|
||||
|
||||
|
|
Loading…
Reference in a new issue