diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-07-24 14:48:14 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-08-13 17:32:21 +0200 |
commit | 21468e6de80e2e3584024f796e3c0ce8b12474bd (patch) | |
tree | 416675d36767f62938641f5afcdcbf8525e75363 /net/can | |
parent | 78f8a326f924b090d5a495049c91aa599796f2aa (diff) | |
download | linux-21468e6de80e2e3584024f796e3c0ce8b12474bd.tar.bz2 |
can: gw: cgw_parse_attr(): remove unnecessary braces for single statement block
This patch removes some unnecessary braces for a single statement block.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/gw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/can/gw.c b/net/can/gw.c index 2d2be4afd560..4c6ad0054a4c 100644 --- a/net/can/gw.c +++ b/net/can/gw.c @@ -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) { |