Revert "net: nexthop: Initialize all fields in dumped nexthops"
This reverts commit ce425a0621
.
This commit is contained in:
parent
9a94739948
commit
9e3a5af4fc
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue