diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2006-10-09 02:13:32 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@server.perex.cz> | 2006-12-20 02:55:36 -0500 |
commit | 7ab399262ee636d19db5163a35ac406d5b892a0a (patch) | |
tree | 6cfe6267feb4a8d56114e282d41b683946c6eaf0 /sound/pci/es1968.c | |
parent | e7d24f0bbd0eb0d9a6d337ef67d5e2ad78900488 (diff) |
[ALSA] use the ALIGN macro
Use the ALIGN 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/pci/es1968.c')
-rw-r--r-- | sound/pci/es1968.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index 092da53e1464..01c521d1b460 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -1337,7 +1337,7 @@ static struct esm_memory *snd_es1968_new_memory(struct es1968 *chip, int size) | |||
1337 | struct esm_memory *buf; | 1337 | struct esm_memory *buf; |
1338 | struct list_head *p; | 1338 | struct list_head *p; |
1339 | 1339 | ||
1340 | size = ((size + ESM_MEM_ALIGN - 1) / ESM_MEM_ALIGN) * ESM_MEM_ALIGN; | 1340 | size = ALIGN(size, ESM_MEM_ALIGN); |
1341 | mutex_lock(&chip->memory_mutex); | 1341 | mutex_lock(&chip->memory_mutex); |
1342 | list_for_each(p, &chip->buf_list) { | 1342 | list_for_each(p, &chip->buf_list) { |
1343 | buf = list_entry(p, struct esm_memory, list); | 1343 | buf = list_entry(p, struct esm_memory, list); |