The branch main has been updated by imp:

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

commit 7f9c3339a4ff5fecab3f408ba86afd3c5b778bd3
Author:     Warner Losh <[email protected]>
AuthorDate: 2022-04-05 02:37:22 +0000
Commit:     Warner Losh <[email protected]>
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) {

Reply via email to