diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-10-29 12:19:53 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-14 11:18:17 -0500 |
commit | aafec388a1b7fc533a81c03b4a81c6e5f3e5688f (patch) | |
tree | d54569a2ba6bb3e6839524c38487694ab9dc8ed7 | |
parent | 181d80151f9c6ff3c765c1bd2e4e200ada23c2f3 (diff) |
qedr: Use list_move_tail instead of list_del/list_add_tail
Using list_move_tail() instead of list_del() + list_add_tail().
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/qedr/verbs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 8c6c5ccaf57a..18e2f60a9d4f 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c | |||
@@ -2419,8 +2419,7 @@ static void handle_completed_mrs(struct qedr_dev *dev, struct mr_info *info) | |||
2419 | */ | 2419 | */ |
2420 | pbl = list_first_entry(&info->inuse_pbl_list, | 2420 | pbl = list_first_entry(&info->inuse_pbl_list, |
2421 | struct qedr_pbl, list_entry); | 2421 | struct qedr_pbl, list_entry); |
2422 | list_del(&pbl->list_entry); | 2422 | list_move_tail(&pbl->list_entry, &info->free_pbl_list); |
2423 | list_add_tail(&pbl->list_entry, &info->free_pbl_list); | ||
2424 | info->completed_handled++; | 2423 | info->completed_handled++; |
2425 | } | 2424 | } |
2426 | } | 2425 | } |