Commit bf11eefc authored by Wei Yongjun's avatar Wei Yongjun Committed by Nicholas Bellinger
Browse files

target: use list_move_tail instead of list_del/list_add_tail

Using list_move_tail() instead of list_del() + list_add_tail().

spatch with a semantic match is used to found this problem.

Signed-off-by: default avatarWei Yongjun <>
Signed-off-by: default avatarNicholas Bellinger <>
parent 06cda529
......@@ -660,8 +660,7 @@ static void session_reconnect_expired(struct sbp_session *sess)
list_for_each_entry_safe(login, temp, &sess->login_list, link) {
login->sess = NULL;
list_add_tail(&login->link, &login_list);
list_move_tail(&login->link, &login_list);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment