RDMA/rxe: Remove the duplicate assignment of mr->map_shift
authorXiao Yang <yangx.jy@fujitsu.com>
Thu, 27 Oct 2022 07:31:33 +0000 (07:31 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 Oct 2022 18:08:41 +0000 (15:08 -0300)
commitb071850ef62e36b2fc2ec81863f07be857151409
treee38fcaa4ec6ceab883cf2a365675d310919a3377
parent875ab4a8d9a7e559c4aaad28f5886d39923301b7
RDMA/rxe: Remove the duplicate assignment of mr->map_shift

mr->map_shift is set to ilog2(RXE_BUF_PER_MAP) in both rxe_mr_init() and
rxe_mr_alloc() so remove the duplicate one in rxe_mr_init().

Link: https://lore.kernel.org/r/1666855893-145-1-git-send-email-yangx.jy@fujitsu.com
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_mr.c