]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rxe: Remove the unnecessary variable
authorZhu Yanjun <yanjun.zhu@linux.dev>
Tue, 7 Dec 2021 19:40:57 +0000 (14:40 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 7 Dec 2021 17:56:22 +0000 (13:56 -0400)
commitf170630f629527e4320e0a53cc279138d98bdacf
tree6184d689e9bc58d27e09b21e6d15290ab8cbcb4e
parenta0d1a20043071072fee9a7f3216c112fdc4336f3
RDMA/rxe: Remove the unnecessary variable

The variable pkey is assigned from a macro. Then this variable is passed
to a function bth_init directly, and pkey is not used again. So remove it
and use the macro directly.

Fixes: 6da452602d73 ("RDMA/rxe: Remove pkey table")
Link: https://lore.kernel.org/r/20211207194057.713289-1-yanjun.zhu@linux.dev
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_req.c