projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d891321
)
RDMA/hns: Remove unnecessary braces for single statement blocks
author
Guofeng Yue
<yueguofeng@hisilicon.com>
Thu, 22 Sep 2022 12:33:05 +0000
(20:33 +0800)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Tue, 27 Sep 2022 13:15:25 +0000
(10:15 -0300)
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>
drivers/infiniband/hw/hns/hns_roce_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_main.c
b/drivers/infiniband/hw/hns/hns_roce_main.c
index 9de3a522980a42c2f6f4587565b489f16f3041d1..82948ae3e52becec62f5e184a8c555055c5537f8 100644
(file)
--- 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;