Revert "net: nexthop: Initialize all fields in dumped nexthops"

This reverts commit ce425a0621.
This commit is contained in:
Ksawlii 2024-11-24 00:23:55 +01:00
parent 9a94739948
commit 9e3a5af4fc

View file

@ -210,10 +210,9 @@ static int nla_put_nh_group(struct sk_buff *skb, struct nh_group *nhg)
p = nla_data(nla);
for (i = 0; i < nhg->num_nh; ++i) {
*p++ = (struct nexthop_grp) {
.id = nhg->nh_entries[i].nh->id,
.weight = nhg->nh_entries[i].weight - 1,
};
p->id = nhg->nh_entries[i].nh->id;
p->weight = nhg->nh_entries[i].weight - 1;
p += 1;
}
return 0;