The branch main has been updated by tuexen:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3ca204c97aa74a6509ccf59ff421fed2e9a11d4f

commit 3ca204c97aa74a6509ccf59ff421fed2e9a11d4f
Author:     Michael Tuexen <tue...@freebsd.org>
AuthorDate: 2022-02-18 11:20:44 +0000
Commit:     Michael Tuexen <tue...@freebsd.org>
CommitDate: 2022-02-18 11:20:44 +0000

    sctp: remove unused parameter
    
    MFC after:      3 days
---
 sys/netinet/sctp_os_bsd.h | 2 +-
 sys/netinet/sctp_pcb.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h
index 39c0a8cb5c2a..4d2c40b59a4b 100644
--- a/sys/netinet/sctp_os_bsd.h
+++ b/sys/netinet/sctp_os_bsd.h
@@ -313,7 +313,7 @@ typedef struct callout sctp_os_timer_t;
 /*************************/
 /*      MTU              */
 /*************************/
-#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, af) ((struct ifnet 
*)ifn)->if_mtu
+#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index) ((struct ifnet 
*)ifn)->if_mtu
 #define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, nh) ((uint32_t)((nh != NULL) 
? nh->nh_mtu : 0))
 #define SCTP_GATHER_MTU_FROM_INTFC(sctp_ifn) ((sctp_ifn->ifn_p != NULL) ? 
((struct ifnet *)(sctp_ifn->ifn_p))->if_mtu : 0)
 
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index e1006255204a..150039ade302 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -535,7 +535,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t 
ifn_index,
                sctp_ifnp->refcount = 0;
                sctp_ifnp->vrf = vrf;
                atomic_add_int(&vrf->refcount, 1);
-               sctp_ifnp->ifn_mtu = SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, 
ifn_index, addr->sa_family);
+               sctp_ifnp->ifn_mtu = SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, 
ifn_index);
                if (if_name != NULL) {
                        SCTP_SNPRINTF(sctp_ifnp->ifn_name, SCTP_IFNAMSIZ, "%s", 
if_name);
                } else {

Reply via email to