diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-11-29 15:33:09 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-29 15:33:09 -0800 |
commit | 04699a1f8634a4e89c71b22050b599c72126fa96 (patch) | |
tree | aa3a74faa343e0b3bfe3ddafe2195e85308bbe73 | |
parent | c78bb8442b14ee6704bdb323111ffa874d4bfdaa (diff) | |
download | kernel_samsung_smdk4412-04699a1f8634a4e89c71b22050b599c72126fa96.zip kernel_samsung_smdk4412-04699a1f8634a4e89c71b22050b599c72126fa96.tar.gz kernel_samsung_smdk4412-04699a1f8634a4e89c71b22050b599c72126fa96.tar.bz2 |
RDMA/addr: list_move() cleanups
Replace a couple list_del()/list_add() combos with list_move().
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | drivers/infiniband/core/addr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c index 15ba518..7767a11 100644 --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c @@ -235,8 +235,7 @@ static void process_req(void *data) else if (req->status == -ENODATA) continue; } - list_del(&req->list); - list_add_tail(&req->list, &done_list); + list_move_tail(&req->list, &done_list); } if (!list_empty(&req_list)) { @@ -346,8 +345,7 @@ void rdma_addr_cancel(struct rdma_dev_addr *addr) if (req->addr == addr) { req->status = -ECANCELED; req->timeout = jiffies; - list_del(&req->list); - list_add(&req->list, &req_list); + list_move(&req->list, &req_list); set_timeout(req->timeout); break; } |