From nobody Tue Dec 21 17:35:44 2021 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 D9B5418FFE33; Tue, 21 Dec 2021 17:35:44 +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 4JJNsD4QPLz4csd; Tue, 21 Dec 2021 17:35:44 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 786D06101; Tue, 21 Dec 2021 17:35:44 +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 1BLHZiwA048356; Tue, 21 Dec 2021 17:35:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BLHZiII048355; Tue, 21 Dec 2021 17:35:44 GMT (envelope-from git) Date: Tue, 21 Dec 2021 17:35:44 GMT Message-Id: <202112211735.1BLHZiII048355@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: f9978339d13c - main - Remove dead code. 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: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f9978339d13c077975c8dce405c574ae88cbc148 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640108144; 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=29ZEtr0BX+3AMr+3tIxqcw8O5ENMSO96gaNd0sd8I0g=; b=cwT/as7Y3mCol8X/ZFzhdGZ5hy6JM1ZoqvQQ1OthyAkdKU0KTWfmpfJqWb5m4VdW2pkoEe oJyslZk+dUHKhyP+X54T2rMZbs2poHZbfiobAoVqRhNoiy/uSQgeIcdYqQdge5bd9qL7wy 7R1zroyp0zAmPEsuJG4MEGw5LNYofBsUiP9rFhyZNEchpFeq0c5Lwb5PVUXRqINDz983Hy BsLpBVq5szbur0Rtos1QUXDfWVKkOWD0KGnc+uNdiEvafPShCf4dXREtjMgvqQAYfxamzg gka6af55XCAe9GH5R1+A+YYxW4hoXFmx0rdGvZV16NyW3UV4rDGDgD5xupGFrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640108144; a=rsa-sha256; cv=none; b=BY5ZDcaPnLGdoqlH6AVbG3itRiuy1pp9av1DG1f4wOiMka1YnpGBJ636CJi97nkxFAkMhN zRY/TeGebu4LwkmDUyjVjQmGU3LcCWOPbPfB8GUSNbMN5H+rmFDSfFCsBPFqIkd16Kfky0 zX/qHIQz7QbTJkzXk4YBaF054XaTuErTmOE9RkFbZg0Rtvj7IEOzrlv/EMeCPR7q62Yc0x 4JMYWRidmJX0KCvLzkD6hy6gDJfbcJ4H5G1EosuvD2Vy+/sCWavGifEtQ/9u3/Pnlw7wHw C/h27KzgGuzl9d3aU/6E0kh6l9hKWvhwIjMdILefSyrxxLcF/liLGg8HTEAraA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=f9978339d13c077975c8dce405c574ae88cbc148 commit f9978339d13c077975c8dce405c574ae88cbc148 Author: Hans Petter Selasky AuthorDate: 2021-12-20 16:21:49 +0000 Commit: Hans Petter Selasky CommitDate: 2021-12-21 17:35:03 +0000 Remove dead code. The variable orig_resid is always set to zero right after the while loop where it is cleared. Reviewed by: gallatin@ and glebius@ Differential Revision: https://reviews.freebsd.org/D33589 MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/kern/uipc_socket.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index b64db8f410f3..6661b8f7b898 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -2172,7 +2172,6 @@ dontblock: else m_freem(cm); if (controlp != NULL) { - orig_resid = 0; while (*controlp != NULL) controlp = &(*controlp)->m_next; }