Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb27163b authored by Wei Yongjun's avatar Wei Yongjun Committed by Jeff Kirsher
Browse files

i40e: Use list_move instead of list_del/list_add



Using list_move() instead of list_del() + list_add().

Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 60747ef4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);