From: Wei Yongjun Date: Tue, 26 Jul 2016 14:58:30 +0000 (+0000) Subject: i40e: Use list_move instead of list_del/list_add X-Git-Tag: v4.9.8~1128^2~86^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb27163b2e0a2606a044dfdf662ff1c26a63515c;p=platform%2Fkernel%2Flinux-rpi3.git i40e: Use list_move instead of list_del/list_add Using list_move() instead of list_del() + list_add(). Signed-off-by: Wei Yongjun Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/i40e/i40e_client.c b/drivers/net/ethernet/intel/i40e/i40e_client.c index e1370c5..e6b9263 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_client.c +++ b/drivers/net/ethernet/intel/i40e/i40e_client.c @@ -662,8 +662,7 @@ static int i40e_client_release(struct i40e_client *client) client->name, pf->hw.pf_id); } /* delete the client instance from the list */ - list_del(&cdev->list); - list_add(&cdev->list, &cdevs_tmp); + list_move(&cdev->list, &cdevs_tmp); atomic_dec(&client->ref_cnt); dev_info(&pf->pdev->dev, "Deleted client instance of Client %s\n", client->name);