aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan/vxlan_core.c
diff options
context:
space:
mode:
authorWang Liang <[email protected]>2025-07-22 09:30:49 +0000
committerJakub Kicinski <[email protected]>2025-07-24 00:09:29 +0000
commit918c675b208d163d511a10dc745cc795c20db3d0 (patch)
tree1dac9f22779c7d273a2a5ba03879c6bb62f684a1 /drivers/net/vxlan/vxlan_core.c
parentnetdevsim: add fw_update_flash_chunk_time_ms debugfs knobs (diff)
downloadkernel-918c675b208d163d511a10dc745cc795c20db3d0.tar.gz
kernel-918c675b208d163d511a10dc745cc795c20db3d0.zip
vxlan: remove redundant conversion of vni in vxlan_nl2conf
The IFLA_VXLAN_ID data has been converted to local variable vni in vxlan_nl2conf(), there is no need to do it again when set conf->vni. Signed-off-by: Wang Liang <[email protected]> Acked-by: Nikolay Aleksandrov <[email protected]> Reviewed-by: Petr Machata <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/vxlan/vxlan_core.c')
-rw-r--r--drivers/net/vxlan/vxlan_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
index bcde95cb2a2e..f32be2e301f2 100644
--- a/drivers/net/vxlan/vxlan_core.c
+++ b/drivers/net/vxlan/vxlan_core.c
@@ -4041,7 +4041,7 @@ static int vxlan_nl2conf(struct nlattr *tb[], struct nlattr *data[],
NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_VXLAN_ID], "Cannot change VNI");
return -EOPNOTSUPP;
}
- conf->vni = cpu_to_be32(nla_get_u32(data[IFLA_VXLAN_ID]));
+ conf->vni = vni;
}
if (data[IFLA_VXLAN_GROUP]) {