Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 04:32:58 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7f9c3339a4ff - main - get_nhop: eliminate write only variable gateway
Message-ID:  <202204050432.2354WwTn009718@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=7f9c3339a4ff5fecab3f408ba86afd3c5b778bd3

commit 7f9c3339a4ff5fecab3f408ba86afd3c5b778bd3
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:37:22 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:30:47 +0000

    get_nhop: eliminate write only variable gateway
    
    Sponsored by:           Netflix
---
 sys/net/route/nhop_ctl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/net/route/nhop_ctl.c b/sys/net/route/nhop_ctl.c
index b9b6a6b59139..6a82391307f1 100644
--- a/sys/net/route/nhop_ctl.c
+++ b/sys/net/route/nhop_ctl.c
@@ -354,7 +354,7 @@ static int
 get_nhop(struct rib_head *rnh, struct rt_addrinfo *info,
     struct nhop_priv **pnh_priv)
 {
-	const struct sockaddr *dst, *gateway, *netmask;
+	const struct sockaddr *dst, *netmask;
 	struct nhop_priv *nh_priv, *tmp_priv;
 	int error;
 
@@ -363,7 +363,6 @@ get_nhop(struct rib_head *rnh, struct rt_addrinfo *info,
 	/* Give the protocols chance to augment the request data */
 	dst = info->rti_info[RTAX_DST];
 	netmask = info->rti_info[RTAX_NETMASK];
-	gateway = info->rti_info[RTAX_GATEWAY];
 
 	error = rnh->rnh_preadd(rnh->rib_fibnum, dst, netmask, nh_priv->nh);
 	if (error != 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204050432.2354WwTn009718>