X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fcore%2Fseq%2Fseq_memory.c;h=0cf6ac4773187cca81cf511258083f060bd9cfc6;hb=f527cf405017e60ceb28f84e2d60ab16fc34f209;hp=4bffe509f7198a3617e754a21fa0da245d19878b;hpb=ae3e0218621db0590163b2d5c424ef1f340e3cc6;p=linux-2.6 diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c index 4bffe509f7..0cf6ac4773 100644 --- a/sound/core/seq/seq_memory.c +++ b/sound/core/seq/seq_memory.c @@ -1,7 +1,7 @@ /* * ALSA sequencer Memory Manager * Copyright (c) 1998 by Frank van de Pol - * Jaroslav Kysela + * Jaroslav Kysela * 2000 by Takashi Iwai * * This program is free software; you can redistribute it and/or modify @@ -20,7 +20,6 @@ * */ -#include #include #include #include @@ -151,7 +150,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;