summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {