IB/SA: Remove unwanted braces
authorDasaratharaman Chandramouli <[email protected]>
Mon, 20 Mar 2017 23:38:06 +0000 (19:38 -0400)
committerDoug Ledford <[email protected]>
Fri, 28 Apr 2017 17:58:08 +0000 (13:58 -0400)
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 <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Dasaratharaman Chandramouli <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/core/sa_query.c

index 23d026f7183491eb1848cbbfe56945f0f4fd23dc..1106d08bf318ebe13616e6ec8d04d477ac85e419 100644 (file)
@@ -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;