aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuofeng Yue <[email protected]>2022-09-22 20:33:05 +0800
committerJason Gunthorpe <[email protected]>2022-09-27 10:15:25 -0300
commit77c3e303f691bb3d011426e5d8b5dcecd9b89c16 (patch)
tree899169d90298cd5c34ed210e52f0461e038a0174
parentd8913213ffabe64cb7cfd20d59ef12dcecb47fd7 (diff)
RDMA/hns: Remove unnecessary braces for single statement blocks
Braces {} are not necessary for single statement blocks. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guofeng Yue <[email protected]> Signed-off-by: Haoyue Xu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
-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;