From: Marc Kleine-Budde Date: Wed, 24 Jul 2019 12:48:14 +0000 (+0200) Subject: can: gw: cgw_parse_attr(): remove unnecessary braces for single statement block X-Git-Tag: v5.15~5506^2~229^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21468e6de80e2e3584024f796e3c0ce8b12474bd;p=platform%2Fkernel%2Flinux-starfive.git 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 --- 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) {