Skip to content

Commit

Permalink
can: gw: cgw_parse_attr(): remove unnecessary braces for single state…
Browse files Browse the repository at this point in the history
…ment block

This patch removes some unnecessary braces for a single statement block.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Aug 13, 2019
1 parent 78f8a32 commit 21468e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/can/gw.c
Original file line number Diff line number Diff line change
@@ -775,9 +775,8 @@ static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod,
mod->csumfunc.xor = cgw_csum_xor_neg;
}

if (tb[CGW_MOD_UID]) {
if (tb[CGW_MOD_UID])
nla_memcpy(&mod->uid, tb[CGW_MOD_UID], sizeof(u32));
}
}

if (gwtype == CGW_TYPE_CAN_CAN) {

0 comments on commit 21468e6

Please sign in to comment.