From 21468e6de80e2e3584024f796e3c0ce8b12474bd Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Wed, 24 Jul 2019 14:48:14 +0200 Subject: [PATCH] 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 --- net/can/gw.c | 3 +-- 1 file changed, 1 insertion(+), 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) { -- 2.34.1