RDMA/core: Correct format of braces
authorWenpeng Liang <liangwenpeng@huawei.com>
Wed, 7 Apr 2021 08:15:51 +0000 (16:15 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 12 Apr 2021 17:56:51 +0000 (14:56 -0300)
commitb6eb7011f561a29d91f290e02a8dabee8169da9d
treecb772fea9c34d273e64b4596ae5a2ee25151ee1c
parentf681967ae7d5d3d28e67f754f069bf6cdc87a0d2
RDMA/core: Correct format of braces

Do following cleanups about braces:

- Add the necessary braces to maintain context alignment.
- Fix the open '{' that is not on the same line as "switch".
- Remove braces that are not necessary for single statement blocks.
- Fix "else" that doesn't follow close brace '}'.

Link: https://lore.kernel.org/r/1617783353-48249-6-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cache.c
drivers/infiniband/core/cm.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/mad.c
drivers/infiniband/core/sysfs.c