From: Wei Yongjun Date: Wed, 5 Sep 2012 07:00:15 +0000 (+0800) Subject: ALSA: emu10k1: use list_move_tail instead of list_del/list_add_tail X-Git-Tag: v3.7-rc1~81^2~49 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=292f2b6254c9dbb98def6d3521b07a837545ead0;p=~emulex%2Finfiniband.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/emu10k1/memory.c b/sound/pci/emu10k1/memory.c index 0a436626182..ae709c1ab3a 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 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; }