Skip to content
Commit cc377b9b authored by Guo Zhengkui's avatar Guo Zhengkui Committed by Jason Gunthorpe
Browse files

RDMA/hns: Remove unnecessary ret variable from hns_roce_dereg_mr()

Fix the following coccicheck warning:

drivers/infiniband/hw/hns/hns_roce_mr.c:343:5-8: Unneeded variable: "ret".

Return 0 directly instead.

Link: https://lore.kernel.org/r/20220426070858.9098-1-guozhengkui@vivo.com


Signed-off-by: default avatarGuo Zhengkui <guozhengkui@vivo.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent e7734156
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment