Tag: bf11eefcb1dc1326341ebdc44566ad08bee3f539

target: use list_move_tail instead of list_del/list_add_tail

Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Using list_move_tail() instead of list_del() + list_add_tail(). spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun Signed-off-by: Nicholas Bellinger — drivers/target/sbp/sbp_target.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/target/sbp/sbp_target.c b/drivers/target/sbp/sbp_target.c index 4d97977..0ce44cd 100644 — a/drivers/target/sbp/sbp_target.c +++ b/drivers/target/sbp/sbp_target.c @@ -660,8 …

Continue reading