summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>2017-03-20 19:38:06 -0400
committerDoug Ledford <dledford@redhat.com>2017-04-28 13:58:08 -0400
commit680562b56939c8730c1beba9da2cf184c88a437e (patch)
tree35920d582172af64a3848a1805b517c0ec503e47
parentdbb6c91fd8e0f32ff892cf72782f3650df2be811 (diff)
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 <don.hiatt@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/core/sa_query.c3
1 files changed, 1 insertions, 2 deletions
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;