Here optimizes some codes and removes some warnings by sparse tool checking as well as fixes some defects. Lang Cheng (3): RDMA/hns: Modify the data structure of hns_roce_av RDMA/hns: Fix cast from or to restricted __le32 for driver RDMA/hns: Add reset process for function-clear Lijun Ou (3): RDMA/hns: Refactor the codes of creating qp RDMA/hns: Remove the some magic number RDMA/hns: Fix wrong assignment of qp_access_flags Wenpeng Liang (2): RDMA/hns: Remove if-else judgment statements for creating srq RDMA/hns: Delete the not-used lines Yixian Liu (1): RDMA/hns: Refactor cmd init and mode selection for hip08 drivers/infiniband/hw/hns/hns_roce_ah.c | 23 +-- drivers/infiniband/hw/hns/hns_roce_cmd.c | 14 +- drivers/infiniband/hw/hns/hns_roce_device.h | 17 +- drivers/infiniband/hw/hns/hns_roce_hem.c | 34 ++-- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 49 +++--- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 256 +++++++++++++++++++--------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 5 +- drivers/infiniband/hw/hns/hns_roce_main.c | 18 +- drivers/infiniband/hw/hns/hns_roce_mr.c | 7 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 108 +++++++----- drivers/infiniband/hw/hns/hns_roce_srq.c | 30 +--- 11 files changed, 314 insertions(+), 247 deletions(-) -- 2.8.1