RDMA/irdma: Use list_move instead of list_del/list_add
Using list_move() instead of list_del() + list_add(). Link: https://lore.kernel.org/r/20210608031041.2820429-1-libaokun1@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Baokun Li <libaokun1@huawei.com> Acked-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
ec9bf373f2
commit
ac477efcf0
|
@ -1420,8 +1420,7 @@ irdma_ieq_handle_partial(struct irdma_puda_rsrc *ieq, struct irdma_pfpdu *pfpdu,
|
|||
error:
|
||||
while (!list_empty(&pbufl)) {
|
||||
buf = (struct irdma_puda_buf *)(pbufl.prev);
|
||||
list_del(&buf->list);
|
||||
list_add(&buf->list, rxlist);
|
||||
list_move(&buf->list, rxlist);
|
||||
}
|
||||
if (txbuf)
|
||||
irdma_puda_ret_bufpool(ieq, txbuf);
|
||||
|
|
Loading…
Reference in New Issue