can: gw: cgw_parse_attr(): remove unnecessary braces for single statement block
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 24 Jul 2019 12:48:14 +0000 (14:48 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 13 Aug 2019 15:32:21 +0000 (17:32 +0200)
This patch removes some unnecessary braces for a single statement block.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/gw.c

index 2d2be4afd56066176737cb8c16fec58de65e3870..4c6ad0054a4c1aff34e2f899737da793629ba743 100644 (file)
@@ -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) {