summaryrefslogtreecommitdiff
path: root/net/can/gw.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2019-07-24 14:48:14 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-08-13 17:32:21 +0200
commit21468e6de80e2e3584024f796e3c0ce8b12474bd (patch)
tree416675d36767f62938641f5afcdcbf8525e75363 /net/can/gw.c
parent78f8a326f924b090d5a495049c91aa599796f2aa (diff)
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/gw.c')
-rw-r--r--net/can/gw.c3
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) {