aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cache.c
diff options
context:
space:
mode:
authorWenpeng Liang <liangwenpeng@huawei.com>2021-04-07 16:15:51 +0800
committerJason Gunthorpe <jgg@nvidia.com>2021-04-12 14:56:51 -0300
commitb6eb7011f561a29d91f290e02a8dabee8169da9d (patch)
treecb772fea9c34d273e64b4596ae5a2ee25151ee1c /drivers/infiniband/core/cache.c
parentRDMA/core: Remove redundant spaces (diff)
downloadlinux-dev-b6eb7011f561a29d91f290e02a8dabee8169da9d.tar.xz
linux-dev-b6eb7011f561a29d91f290e02a8dabee8169da9d.zip
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>
Diffstat (limited to 'drivers/infiniband/core/cache.c')
-rw-r--r--drivers/infiniband/core/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c
index d77959089c38..3b0991fedd81 100644
--- a/drivers/infiniband/core/cache.c
+++ b/drivers/infiniband/core/cache.c
@@ -1113,8 +1113,9 @@ int ib_find_cached_pkey(struct ib_device *device, u32 port_num,
*index = i;
ret = 0;
break;
- } else
+ } else {
partial_ix = i;
+ }
}
if (ret && partial_ix >= 0) {