From: Dasaratharaman Chandramouli Date: Mon, 20 Mar 2017 23:38:06 +0000 (-0400) Subject: IB/SA: Remove unwanted braces X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=680562b56939c8730c1beba9da2cf184c88a437e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git IB/SA: Remove unwanted braces This fixes a checkpatch issue. The fix is needed so that some of these functions can be moved around in the forthcoming patches Reviewed-by: Don Hiatt Reviewed-by: Ira Weiny Signed-off-by: Dasaratharaman Chandramouli Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c index 23d026f71834..1106d08bf318 100644 --- a/drivers/infiniband/core/sa_query.c +++ b/drivers/infiniband/core/sa_query.c @@ -945,9 +945,8 @@ static void update_sm_ah(struct work_struct *work) } new_ah = kmalloc(sizeof(*new_ah), GFP_KERNEL); - if (!new_ah) { + if (!new_ah) return; - } kref_init(&new_ah->ref); new_ah->src_path_mask = (1 << port_attr.lmc) - 1;