RDMA/hns: Remove redundant variable "ret"
authorGuofeng Yue <yueguofeng@hisilicon.com>
Sat, 9 Apr 2022 08:32:52 +0000 (16:32 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 11 Apr 2022 14:00:34 +0000 (11:00 -0300)
commit601cdd861cf551e330c85c4dfa6d25bef3b8d554
tree7c534c1ff7a167eec48c69e1f3851d273e711fe4
parent9216d05943833bdedefb8c88680a48f9e5e4aafc
RDMA/hns: Remove redundant variable "ret"

It is completely redundant for this function to use "ret" to store the
return value of the subfunction.

Link: https://lore.kernel.org/r/20220409083254.9696-4-liangwenpeng@huawei.com
Signed-off-by: Guofeng Yue <yueguofeng@hisilicon.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c