Re: [PATCH rdma-next v2 1/3] RDMA/nes: Remove useless usecnt variable and redundant memset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 12, 2019 at 08:39:14PM +0200, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> 
> 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@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/nes/nes_verbs.c | 9 +--------
>  drivers/infiniband/hw/nes/nes_verbs.h | 1 -
>  2 files changed, 1 insertion(+), 9 deletions(-)

Applied to for-next

Thanks,
Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux