]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83f2c1eb2b4eba4356d46baa04e185c7b8d9734e
tree7c534c1ff7a167eec48c69e1f3851d273e711fe4
parent9e61c720e03e9a4a218509bf2b8165446868904c
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