aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-09-05 03:00:15 -0400
committerTakashi Iwai <tiwai@suse.de>2012-09-05 03:15:12 -0400
commit292f2b6254c9dbb98def6d3521b07a837545ead0 (patch)
tree7b3235db54eafb887add3f6ba630683e63ee4282
parent3a4a7ef5678416b04927102f85998e38b52f7196 (diff)
ALSA: emu10k1: use list_move_tail instead of list_del/list_add_tail
Using list_move_tail() instead of list_del() + list_add_tail(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/emu10k1/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/emu10k1/memory.c b/sound/pci/emu10k1/memory.c
index 0a436626182b..ae709c1ab3a8 100644
--- 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
263 spin_lock_irqsave(&emu->memblk_lock, flags); 263 spin_lock_irqsave(&emu->memblk_lock, flags);
264 if (blk->mapped_page >= 0) { 264 if (blk->mapped_page >= 0) {
265 /* update order link */ 265 /* update order link */
266 list_del(&blk->mapped_order_link); 266 list_move_tail(&blk->mapped_order_link,
267 list_add_tail(&blk->mapped_order_link, &emu->mapped_order_link_head); 267 &emu->mapped_order_link_head);
268 spin_unlock_irqrestore(&emu->memblk_lock, flags); 268 spin_unlock_irqrestore(&emu->memblk_lock, flags);
269 return 0; 269 return 0;
270 } 270 }