Skip to content

Commit

Permalink
[ALSA] use the roundup macro
Browse files Browse the repository at this point in the history
Use the roundup macro instead of manual calculations.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Clemens Ladisch authored and Jaroslav Kysela committed Dec 20, 2006
1 parent 7ab3992 commit 201efe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/seq/seq_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 201efe3

Please sign in to comment.