summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorGuofeng Yue <yueguofeng@hisilicon.com>2022-09-22 14:33:05 +0200
committerJason Gunthorpe <jgg@nvidia.com>2022-09-27 15:15:25 +0200
commit77c3e303f691bb3d011426e5d8b5dcecd9b89c16 (patch)
tree899169d90298cd5c34ed210e52f0461e038a0174 /drivers/infiniband
parentRDMA/hns: Cleanup for a spelling error of Asynchronous (diff)
downloadlinux-77c3e303f691bb3d011426e5d8b5dcecd9b89c16.tar.xz
linux-77c3e303f691bb3d011426e5d8b5dcecd9b89c16.zip
RDMA/hns: Remove unnecessary braces for single statement blocks
Braces {} are not necessary for single statement blocks. Link: https://lore.kernel.org/r/20220922123315.3732205-3-xuhaoyue1@hisilicon.com Signed-off-by: Guofeng Yue <yueguofeng@hisilicon.com> Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c
index 9de3a522980a..82948ae3e52b 100644
--- a/drivers/infiniband/hw/hns/hns_roce_main.c
+++ b/drivers/infiniband/hw/hns/hns_roce_main.c
@@ -846,9 +846,8 @@ static int hns_roce_setup_hca(struct hns_roce_dev *hr_dev)
hns_roce_init_cq_table(hr_dev);
- if (hr_dev->caps.flags & HNS_ROCE_CAP_FLAG_SRQ) {
+ if (hr_dev->caps.flags & HNS_ROCE_CAP_FLAG_SRQ)
hns_roce_init_srq_table(hr_dev);
- }
return 0;