projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39d5534
)
RDMA/uverbs: Remove the unnecessary assignment
author
Zhu Yanjun
<yanjun.zhu@linux.dev>
Tue, 7 Dec 2021 06:46:07 +0000
(
01:46
-0500)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Mon, 6 Dec 2021 23:50:35 +0000
(19:50 -0400)
The struct member variable create_flags is assigned twice. Remove the
unnecessary assignment.
Fixes:
ece9ca97ccdc
("RDMA/uverbs: Do not check the input length on create_cq/qp paths")
Link:
https://lore.kernel.org/r/20211207064607.541695-1-yanjun.zhu@linux.dev
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_cmd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/core/uverbs_cmd.c
b/drivers/infiniband/core/uverbs_cmd.c
index d1345d76d9b122fe608d1a2ae7fa7722922f0b99..6b6393176b3c6c4f68bf87d1633396a10ac40a6a 100644
(file)
--- a/
drivers/infiniband/core/uverbs_cmd.c
+++ b/
drivers/infiniband/core/uverbs_cmd.c
@@
-1399,7
+1399,6
@@
static int create_qp(struct uverbs_attr_bundle *attrs,
attr.sq_sig_type = cmd->sq_sig_all ? IB_SIGNAL_ALL_WR :
IB_SIGNAL_REQ_WR;
attr.qp_type = cmd->qp_type;
- attr.create_flags = 0;
attr.cap.max_send_wr = cmd->max_send_wr;
attr.cap.max_recv_wr = cmd->max_recv_wr;