Skip to content

Commit cf0b939

Browse files
Dasaratharaman Chandramoulidledford
authored andcommitted
IB/core: Add braces when using sizeof
This patch adds braces around parameters to sizeof as called out by checkpatch Reviewed-by: Don Hiatt <don.hiatt@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent cfd5193 commit cf0b939

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/infiniband/core/uverbs_marshall.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst,
3737
struct ib_ah_attr *src)
3838
{
39-
memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid);
39+
memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof(src->grh.dgid));
4040
dst->grh.flow_label = src->grh.flow_label;
4141
dst->grh.sgid_index = src->grh.sgid_index;
4242
dst->grh.hop_limit = src->grh.hop_limit;

0 commit comments

Comments
 (0)