projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a4a7ef
)
ALSA: emu10k1: use list_move_tail instead of list_del/list_add_tail
author
Wei Yongjun
<
[email protected]
>
Wed, 5 Sep 2012 07:00:15 +0000
(15:00 +0800)
committer
Takashi Iwai
<
[email protected]
>
Wed, 5 Sep 2012 07:15:12 +0000
(09:15 +0200)
Using list_move_tail() instead of list_del() + list_add_tail().
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
sound/pci/emu10k1/memory.c
patch
|
blob
|
history
diff --git
a/sound/pci/emu10k1/memory.c
b/sound/pci/emu10k1/memory.c
index 0a436626182b9cc358def5a31f7a7daabf43c484..ae709c1ab3a848e3b954d7e04747d423b30d1e55 100644
(file)
--- a/
sound/pci/emu10k1/memory.c
+++ b/
sound/pci/emu10k1/memory.c
@@
-263,8
+263,8
@@
int snd_emu10k1_memblk_map(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *b
spin_lock_irqsave(&emu->memblk_lock, flags);
if (blk->mapped_page >= 0) {
/* update order link */
- list_
del(&blk->mapped_order_link);
-
list_add_tail(&blk->mapped_order_link,
&emu->mapped_order_link_head);
+ list_
move_tail(&blk->mapped_order_link,
+
&emu->mapped_order_link_head);
spin_unlock_irqrestore(&emu->memblk_lock, flags);
return 0;
}