IB/hfi1: Assign npages earlier
authorDean Luick <dean.luick@cornelisnetworks.com>
Mon, 9 Jan 2023 19:04:08 +0000 (14:04 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 31 Jan 2023 14:52:35 +0000 (10:52 -0400)
commitf9c47b2caa7ffc903ec950b454b59c209afe3182
treeb5c8fcf76c0b25a92d6b7e027e77a7f0cb705f79
parentc956940a4ab73a87d0165e911c001dbdd2c8200f
IB/hfi1: Assign npages earlier

Improve code clarity and enable earlier use of
tidbuf->npages by moving its assignment to
structure creation time.

Signed-off-by: Dean Luick <dean.luick@cornelisnetworks.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Link: https://lore.kernel.org/r/167329104884.1472990.4639750192433251493.stgit@awfm-02.cornelisnetworks.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hfi1/user_exp_rcv.c