Most static warnings are detected by tools, mainly about: (1) #1~3: Remove redundant statements. (2) #4~5: About the return value of the function. Chengchang Tang (1): RDMA/hns: Remove unnecessary check for the sgid_attr when modifying QP Guofeng Yue (1): RDMA/hns: Remove redundant variable "ret" Haoyue Xu (1): RDMA/hns: Init the variable at the suitable place Wenpeng Liang (1): RDMA/hns: Add judgment on the execution result of CMDQ that free vf resource Yixing Liu (1): RDMA/hns: Remove unused function to_hns_roce_state() drivers/infiniband/hw/hns/hns_roce_device.h | 11 -------- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 29 ++++++++++++--------- drivers/infiniband/hw/hns/hns_roce_qp.c | 20 -------------- 3 files changed, 17 insertions(+), 43 deletions(-) -- 2.33.0