diff options
| author | Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> | 2026-09-22 19:05:38 +0000 |
|---|---|---|
| committer | Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> | 2026-09-22 19:19:31 +0000 |
| commit | 50eae683fab8c228606bab707295d9468f97c158 (patch) | |
| tree | b6da7c4e7ab989f15f63dbc117eabf8a31a3f888 | |
| parent | ab636e421d318a1175450d5652d8460dd2c48b76 (diff) | |
route/fib_algo: Remove redundant zeroing of fd_af
fd is allocated with M_ZERO and fd_num_af never decreases.
Therefore, no need for zeroing nhaf_count and nhaf_base here.
Fixes: 633438224304 ("route/fib_algo: Fix nexthop index ...")
| -rw-r--r-- | sys/net/route/fib_algo.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/route/fib_algo.c b/sys/net/route/fib_algo.c index 0a949ff8b776..44a8b7ff445a 100644 --- a/sys/net/route/fib_algo.c +++ b/sys/net/route/fib_algo.c @@ -1884,8 +1884,6 @@ fib_ref_nhop(struct fib_data *fd, struct nhop_object *nh) ("out of nhop index spaces for %s", print_family(family))); nt = &fd->fd_af[fd->fd_num_af++]; nt->nhaf_family = family; - nt->nhaf_count = 0; - nt->nhaf_base = 0; } idx = get_nhop_idx(nh); |
