projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ab3992
)
[ALSA] use the roundup macro
author
Clemens Ladisch
<clemens@ladisch.de>
Mon, 9 Oct 2006 06:14:15 +0000
(08:14 +0200)
committer
Jaroslav Kysela
<perex@server.perex.cz>
Wed, 20 Dec 2006 07:55:37 +0000
(08:55 +0100)
Use the roundup macro instead of manual calculations.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/seq/seq_memory.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/seq/seq_memory.c
b/sound/core/seq/seq_memory.c
index 4bffe509f7198a3617e754a21fa0da245d19878b..a3dc5e01e9f2cab6b17cf9602e876501a0d3ebeb 100644
(file)
--- 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
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;