OSDN Git Service

RDMA/hns: Remove redundant memcpy()
authorWeihang Li <liweihang@huawei.com>
Fri, 8 May 2020 09:45:57 +0000 (17:45 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 23:54:58 +0000 (20:54 -0300)
commit252067e95035151372f21c0c8626bf6fed9c5f0b
treee899f314808b068266dfdd3d3b4ddf1045daa82e
parent7b611d2f6e8b99b699996c52b823454f4a74978f
RDMA/hns: Remove redundant memcpy()

srq_context is a local variables and is only used to get some fields from
buffer of mailbox. It's meaningless to copy mailbox's buffer's contents
back to it.

Link: https://lore.kernel.org/r/1588931159-56875-8-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c