From: Guofeng Yue Date: Thu, 22 Sep 2022 12:33:05 +0000 (+0800) Subject: RDMA/hns: Remove unnecessary braces for single statement blocks X-Git-Tag: v6.6.17~6455^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77c3e303f691bb3d011426e5d8b5dcecd9b89c16;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Haoyue Xu Signed-off-by: Jason Gunthorpe --- diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 9de3a52..82948ae 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;