Commit 0edd9488 authored by Wei Yongjun's avatar Wei Yongjun Committed by Pablo Neira Ayuso
Browse files

ipvs: use list_del_init instead of list_del/INIT_LIST_HEAD

Using list_del_init() instead of list_del() + INIT_LIST_HEAD().

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

Signed-off-by: default avatarWei Yongjun <>
Acked-by: default avatarSimon Horman <>
Signed-off-by: default avatarPablo Neira Ayuso <>
parent a6729955
......@@ -539,8 +539,7 @@ static int ip_vs_rs_unhash(struct ip_vs_dest *dest)
* Remove it from the rs_table table.
if (!list_empty(&dest->d_list)) {
return 1;
Markdown is supported
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