Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbb6c91f authored by Dasaratharaman Chandramouli's avatar Dasaratharaman Chandramouli Committed by Doug Ledford
Browse files

IB/SA: Add braces when using sizeof



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: default avatarDon Hiatt <don.hiatt@intel.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent f96a3187
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -944,7 +944,7 @@ static void update_sm_ah(struct work_struct *work)
		return;
	}

	new_ah = kmalloc(sizeof *new_ah, GFP_KERNEL);
	new_ah = kmalloc(sizeof(*new_ah), GFP_KERNEL);
	if (!new_ah) {
		return;
	}
@@ -957,7 +957,7 @@ static void update_sm_ah(struct work_struct *work)
			 IB_DEFAULT_PKEY_FULL, &new_ah->pkey_index))
		pr_err("Couldn't find index for default PKey\n");

	memset(&ah_attr, 0, sizeof ah_attr);
	memset(&ah_attr, 0, sizeof(ah_attr));
	ah_attr.dlid     = port_attr.sm_lid;
	ah_attr.sl       = port_attr.sm_sl;
	ah_attr.port_num = port->port_num;