RDMA/nes: Remove useless usecnt variable and redundant memset
The internal design of RDMA/core ensures that there dealloc ucontext will be called only if alloc_ucontext succeeded, hence there is no need to manage internal variable to mark validity of ucontext. As part of this change, remove redundant memeset too. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
e50838c27f
commit
be56b07b4f
@@ -59,7 +59,6 @@ struct nes_ucontext {
|
||||
struct list_head cq_reg_mem_list;
|
||||
struct list_head qp_reg_mem_list;
|
||||
u32 mcrqf;
|
||||
atomic_t usecnt;
|
||||
};
|
||||
|
||||
struct nes_pd {
|
||||
|
Reference in New Issue
Block a user