]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/nes: Remove useless usecnt variable and redundant memset
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 12 Feb 2019 18:39:14 +0000 (20:39 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Sat, 16 Feb 2019 04:39:15 +0000 (21:39 -0700)
commitbe56b07b4f3d0ab37abfb86a78f47bfcfeb6c51c
tree7422f797082adbf2a6f2e0b27efec691b090cc06
parente50838c27ff7e1438ea2f9ab4bfcb227f90a107f
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>
drivers/infiniband/hw/nes/nes_verbs.c
drivers/infiniband/hw/nes/nes_verbs.h