Unverified Commit 67d516f9 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3256 RDMA/hns: Cleanups of some optimize code

Merge Pull Request from: @stinft 
 
This pr optimizes the code for code readability, such as code refactoring, replacing magic numbers with macros, and deleting useless code.

Chengchang Tang (5):
   RDMA/hns: Replace magic number when fill ADDR to HW
   RDMA/hns: Remove extra blank line in get_sge_num_from_max_inl_data()
   RDMA/hns: Remove unused parameters detected by -Wextra
   RDMA/hns: Refactor mtr find
   RDMA/hns: Remove useless NULL check in hns_roce_get_netdev()
 Junxian Huang (2):
   RDMA/hns: Improve readability of check_bond_support()
   RDMA/hns: Add more check for bonding-unsupported cases
 Yangyang Li (1):
   RDMA/hns: Use macro instead of magic number
 wenglianfa (2):
   RDMA/hns: Fix the spin_lock and spin_unlock objects are inconsistent
   RDMA/hns: Cleanup for debugfs

bugzilla: https://gitee.com/openeuler/kernel/issues/I8LY0D 
 
Link:https://gitee.com/openeuler/kernel/pulls/3256

 

Reviewed-by: default avatarChengchang Tang <tangchengchang@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 47e1417d 0d76b878
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment