diff options
author | Cheng Xu <chengyou@linux.alibaba.com> | 2022-09-09 12:38:19 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2022-09-20 14:27:51 +0300 |
commit | 95f911d94995861311d78c77acb91af1ad6b8cc5 (patch) | |
tree | db54d0230849b0ad6e221457489d7e71746adeb5 /drivers/infiniband/hw/erdma/erdma.h | |
parent | 6dbe4a8dead84de474483910b02ec9e6a10fc1a9 (diff) | |
download | linux-95f911d94995861311d78c77acb91af1ad6b8cc5.tar.xz |
RDMA/erdma: Eliminate unnecessary casting for erdma_post_cmd_wait
erdma_post_cmd_wait does not use the 'u64 *req' input parameter directly.
So it is better to define it to 'void *req', and by this we can eliminate
the casting when calling erdma_post_cmd_wait.
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220909093822.33868-2-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/erdma/erdma.h')
-rw-r--r-- | drivers/infiniband/hw/erdma/erdma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/erdma/erdma.h b/drivers/infiniband/hw/erdma/erdma.h index 2aae635c1c8d..07bcd688fdb7 100644 --- a/drivers/infiniband/hw/erdma/erdma.h +++ b/drivers/infiniband/hw/erdma/erdma.h @@ -269,7 +269,7 @@ void erdma_finish_cmdq_init(struct erdma_dev *dev); void erdma_cmdq_destroy(struct erdma_dev *dev); void erdma_cmdq_build_reqhdr(u64 *hdr, u32 mod, u32 op); -int erdma_post_cmd_wait(struct erdma_cmdq *cmdq, u64 *req, u32 req_size, +int erdma_post_cmd_wait(struct erdma_cmdq *cmdq, void *req, u32 req_size, u64 *resp0, u64 *resp1); void erdma_cmdq_completion_handler(struct erdma_cmdq *cmdq); |