From nobody Tue Apr 05 04:33:06 2022 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 68C531A931D0; Tue, 5 Apr 2022 04:33:08 +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 4KXZWl22nCz4gnt; Tue, 5 Apr 2022 04:33:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133187; 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=PFdgDnPwMN83pMS1N9A+YdfhSEIFx/XdVHrF3TpOsNs=; b=wWCUGwelJQiMUurI2kRqk++easVlzHq0WKhex88sT6ttwmNl0a068dHO+uIUOVtwl0ZUzC XX9IKQk3H3QOqfA3FTeQnXgJUOt2VqjqvdmEBV9/IjgqXWNuehVLiR3Np/tTeb8MkfNMtk Pq+qmE1sb4MDlKLxZER80e3un6NJdYJ+u+V2D+tcrjhmzTk0dQ0ra2KDsAICGS8LpPZMKr C8GwXKvZyHMV5m82pMi9aMgAr79dhr14ZxfHdbjtO0oz7Icd6OYhijl8JHCiYXhzNZG/Jg JtxKIPlbD7Cvz+ukFj8OeeDJ4i/YAGiYuOGBVzwtHGrfwvU3e7j1ZIGHs8SmbQ== 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 D7B371FF01; Tue, 5 Apr 2022 04:33:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2354X6Lr009920; Tue, 5 Apr 2022 04:33:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354X6K5009919; Tue, 5 Apr 2022 04:33:06 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:33:06 GMT Message-Id: <202204050433.2354X6K5009919@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 5c2aad7e890d - main - krpc_call: eliminiate write only variable nam 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c2aad7e890d9f90b0281bb68bf07e764e0d62bd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133187; 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=PFdgDnPwMN83pMS1N9A+YdfhSEIFx/XdVHrF3TpOsNs=; b=U7TZdyLV1hmVSSULTjY8xjIIoA4M2aTF5PkcrA4DNigHz/N7IXJygyEvA9PzXxxJU7DUCN AsWHQaK347VymCaKQldVdn4Kj/T7uRr4/+5mJ/4zEcSRW/izq2IQ/o/TwlmSw/Fpg6I9VA RuieJa1+2pjLTf8T45StJZrdxlASJqtfIPK2wRNwcyw3SKTAdC4povKMzBevzQFU9xNG/h K6nFx7OPd9TOPBSWzXtRVxJkIgXf02s8HR3yoIQIZKvWH+LV1Z8wXa5W+vVdL71NlVsnxB VlBWb1zc9dJK8RZNQaLeHSIN9u+w43EX28tDZfkk/q/rrMEdrDLTAGYWHePX1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133187; a=rsa-sha256; cv=none; b=b/XBMjk34u+/I9LSbchpSt/2TFZGKzcI9ueiJRHXlfSrbJ/AAWBKd1+vkS6UcbWxhffrc6 HuEMyMKggoXpzxvSvfU5LlNg+OlxR7tHBC2vVqs+7FjGt/OJlNiUdUJS3nPHbJRRXtvOos Su1X6mjKOSthFuSIm/lbA+goAHlK9vx+pjB/uOlHnzfEYEfQ/0RqFxuwodo6aO/p6i8JXT 2OKuKzTG8LTLen1aSH7kHDO8cFPY1mUf9ukdPH+qwUteKAC9xgIIhKC8SXUKIlkYBpV65E ytTn4QyRN0AZu7rNxqL8lNWgwlNmQUtnWofTIV56S3Ko4uQe45coMfSDLj7rUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5c2aad7e890d9f90b0281bb68bf07e764e0d62bd commit 5c2aad7e890d9f90b0281bb68bf07e764e0d62bd Author: Warner Losh AuthorDate: 2022-04-05 02:42:08 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:31:00 +0000 krpc_call: eliminiate write only variable nam Sponsored by: Netflix --- sys/nfs/krpc_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/nfs/krpc_subr.c b/sys/nfs/krpc_subr.c index 21e8e3ad44d0..b4a0abd7a6f1 100644 --- a/sys/nfs/krpc_subr.c +++ b/sys/nfs/krpc_subr.c @@ -196,7 +196,7 @@ krpc_call(struct sockaddr_in *sa, u_int prog, u_int vers, u_int func, struct socket *so; struct sockaddr_in *sin, ssin; struct sockaddr *from; - struct mbuf *m, *nam, *mhead; + struct mbuf *m, *mhead; struct krpc_call *call; struct krpc_reply *reply; struct sockopt sopt; @@ -215,7 +215,7 @@ krpc_call(struct sockaddr_in *sa, u_int prog, u_int vers, u_int func, return (EAFNOSUPPORT); /* Free at end if not null. */ - nam = mhead = NULL; + mhead = NULL; from = NULL; /*