From: Kirill A. Shutemov Date: Mon, 25 Jul 2011 00:49:52 +0000 (+1000) Subject: Replace list_del() followed by list_add() with list_move(). X-Git-Tag: next-20110726~30^2~31 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4c7e90337bd5341920927d7397fbdce26ec66f55;p=karo-tx-linux.git Replace list_del() followed by list_add() with list_move(). Signed-off-by: Kirill A. Shutemov Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-log-userspace-base.c b/drivers/md/dm-log-userspace-base.c index aa2e0c374ab3..1021c8986011 100644 --- a/drivers/md/dm-log-userspace-base.c +++ b/drivers/md/dm-log-userspace-base.c @@ -394,8 +394,7 @@ static int flush_by_group(struct log_c *lc, struct list_head *flush_list) group[count] = fe->region; count++; - list_del(&fe->list); - list_add(&fe->list, &tmp_list); + list_move(&fe->list, &tmp_list); type = fe->type; if (count >= MAX_FLUSH_GROUP_COUNT)