projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f96a318
)
IB/SA: Add braces when using sizeof
author
Dasaratharaman Chandramouli
<
[email protected]
>
Mon, 20 Mar 2017 23:38:05 +0000
(19:38 -0400)
committer
Doug 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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/sa_query.c
b/drivers/infiniband/core/sa_query.c
index a37c8aa56c994eb856519b3710daa418fd3e613a..23d026f7183491eb1848cbbfe56945f0f4fd23dc 100644
(file)
--- a/
drivers/infiniband/core/sa_query.c
+++ b/
drivers/infiniband/core/sa_query.c
@@
-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;