git: cd996b848944 - main - ofed: garbage collect now unused sdp_sockaddr()

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Fri, 01 Dec 2023 05:50:25 UTC
The branch main has been updated by glebius:

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

commit cd996b848944ec0d5302fea3fbe36f253470fbcc
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2023-12-01 05:50:16 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2023-12-01 05:50:16 +0000

    ofed: garbage collect now unused sdp_sockaddr()
    
    Submitted by:   zlei
---
 sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c b/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
index 8def3b37bf46..95048a1dc186 100644
--- a/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
+++ b/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
@@ -187,24 +187,6 @@ sdp_pcbfree(struct sdp_sock *ssk)
 	uma_zfree(sdp_zone, ssk);
 }
 
-/*
- * Common routines to return a socket address.
- */
-static struct sockaddr *
-sdp_sockaddr(in_port_t port, struct in_addr *addr_p)
-{
-	struct sockaddr_in *sin;
-
-	sin = malloc(sizeof *sin, M_SONAME,
-		M_WAITOK | M_ZERO);
-	sin->sin_family = AF_INET;
-	sin->sin_len = sizeof(*sin);
-	sin->sin_addr = *addr_p;
-	sin->sin_port = port;
-
-	return (struct sockaddr *)sin;
-}
-
 static int
 sdp_getsockaddr(struct socket *so, struct sockaddr *sa)
 {