aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2006-10-09 02:14:15 -0400
committerJaroslav Kysela <perex@server.perex.cz>2006-12-20 02:55:37 -0500
commit201efe3793b0faab3538a463ad6d63cf0ef4403c (patch)
tree2e45a8f88a2e5791088662aba1fec1c450540eb3 /sound
parent7ab399262ee636d19db5163a35ac406d5b892a0a (diff)
[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>
Diffstat (limited to 'sound')
-rw-r--r--sound/core/seq/seq_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c
index 4bffe509f719..a3dc5e01e9f2 100644
--- a/sound/core/seq/seq_memory.c
+++ b/sound/core/seq/seq_memory.c
@@ -151,7 +151,7 @@ int snd_seq_expand_var_event(const struct snd_seq_event *event, int count, char
151 return len; 151 return len;
152 newlen = len; 152 newlen = len;
153 if (size_aligned > 0) 153 if (size_aligned > 0)
154 newlen = ((len + size_aligned - 1) / size_aligned) * size_aligned; 154 newlen = roundup(len, size_aligned);
155 if (count < newlen) 155 if (count < newlen)
156 return -EAGAIN; 156 return -EAGAIN;
157 157