From nobody Fri Dec 01 05:50:25 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ShMbj4Pf6z53Ksb; Fri, 1 Dec 2023 05:50:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ShMbj32Ndz3XqJ; Fri, 1 Dec 2023 05:50:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701409825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kRWTQiueqrMG5xeU3rqpcurSYRZi/RyIB5XGH4U13hM=; b=vwp/C3gu0hzw4//u+tqmA3lXYaz0K2I0Kafx1Aea+70zbimaaMo+zB4mej6RyIFXFtUxQa JO2yPsxLKt16ECZ7wgH8Wo2JpP4mX8ZfHFAaeNKCUXcHIvkeXNSaWXtzIQp/LJnLd2LRXV CKueyM69r/ekhje+eVVUspwG//UVgs4iS7SHVsjOOjxu12OdsM0+hP0O6VzAZSRdGCpWYC H/GlgHX3ZI+nwNVlYsGmlkPo8qz+TubBtciQULX0ELtkN1WCX4m5Rr1FWEUCjv70Z09cYn hj6GLT9GGmYzadRmje2lquDSJQssfrk0MoKySOZ6o9XKamda0vg2INP17Krchg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701409825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kRWTQiueqrMG5xeU3rqpcurSYRZi/RyIB5XGH4U13hM=; b=M3uV8OQxZC2vu9jcUE9PIPxRr2zohfg663Y1udo2TR3Kmjcg7goN+8NAT3fAwuuJri53t+ StezzYWHomjfSlKBz6xkTXGgMgQ4N+drxf2LggMnSPdO0BQ6pddKI7jwfnJBSKHlyFwIHf 66OvzQpRkqN0p7d+LKE5B9PejJqIj4tq4IHhraNxDzqXWy/PSfJhhBHygTCWpvQvSJrwFD pGsgZ1bdnZZ5lPksxJfKkMxZJeOGaUkCKCBzmzs12gd4B7qn6seIxRZDCUnnsKM244cm4a k7wN5juwp65ebTnofSjhToB9HGQRW4mKcRDYUGQ7KE/NAFp086rJxm9Esx9trw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701409825; a=rsa-sha256; cv=none; b=JTohFYnj8d8nNg5xR/r5PMX4cYriGp7YRVkkKb8+kyXj0XxDOdRYPORzZ2G/NU2j18pn4I /XrRsAzRWaC3RbuV2mAJCTX/YpvqTZs5Bmr5ZP2xo7vAuZM0bqWYy/urcwXI0OL36LSfBF 6Ct0LjFqV7B+pp3i1nXfrJRPu6iGSKd27MrpwIEt6sHrrTkgNUY/k3kAmzBY8KzWdnlh1G lVma1eTpMQ/0gVYlTuXKBIqJTF75gjaYPl+j4pXn80z650274/+5uYGCTtlp5iT1glkYat az7sQYQ/jVTyx62mjQxOPO5Eja3jAPS2w1nTrObpx5EjyvM3rJwIgCrqp8hAQg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ShMbj26y7z6W0; Fri, 1 Dec 2023 05:50:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B15oPYW084519; Fri, 1 Dec 2023 05:50:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B15oPfw084516; Fri, 1 Dec 2023 05:50:25 GMT (envelope-from git) Date: Fri, 1 Dec 2023 05:50:25 GMT Message-Id: <202312010550.3B15oPfw084516@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: cd996b848944 - main - ofed: garbage collect now unused sdp_sockaddr() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cd996b848944ec0d5302fea3fbe36f253470fbcc Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=cd996b848944ec0d5302fea3fbe36f253470fbcc commit cd996b848944ec0d5302fea3fbe36f253470fbcc Author: Gleb Smirnoff AuthorDate: 2023-12-01 05:50:16 +0000 Commit: Gleb Smirnoff 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) {