From nobody Fri Jan 07 13:09:31 2022 X-Original-To: dev-commits-src-branches@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 AA6BB193A391; Fri, 7 Jan 2022 13:09:31 +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 4JVk8C2sc0z4cnw; Fri, 7 Jan 2022 13:09:31 +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 42ED53C28; Fri, 7 Jan 2022 13:09:31 +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 207D9VI7094655; Fri, 7 Jan 2022 13:09:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 207D9V5A094654; Fri, 7 Jan 2022 13:09:31 GMT (envelope-from git) Date: Fri, 7 Jan 2022 13:09:31 GMT Message-Id: <202201071309.207D9V5A094654@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: a889d262a758 - stable/13 - Remove dead code. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: a889d262a75894c71b9e84d106b04069ee824992 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641560971; 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=oSqEdVvrdrAkheCifiTXG0y1AbqKQM7uJtQuVcKiirQ=; b=g3MQ/onOtpCSI3WCoid0EBxkjnf7WURP9xLfCceZjPrevHzjza5Ck9seWvKTfC7b4+YUR/ 6hAXBn3kuYcAlObdFKnVJxorbyftYjiRkUHw/9xF3BmZkW4pp99XTzA0g8DkNMxYOMI1jQ g6e1+inVWE1jtcLKSr0NiofzScu+wlp1ZanRkcZXGS2+cb7Bt5nhiUhtIgRDwIc2zTjU+1 /Fb4H9X38I6gzn9BFuGiQVV8wywZyvc2yzrKbbBwKHhlJ+sxPCTYGE0yEczTg3ftMMxH7H MRiwyJoWcrDYbCtpti++wIo0OY4O3loQhp4hjWI1ill+RWfKztexwvyPbctd8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641560971; a=rsa-sha256; cv=none; b=yzt0OuhIRvQ2jD+orkqidrxJo3hPPbo8FNw0W2u4OH5Qo4Up++MPWrYSasBOy0+e6P1WAx l/1XzynbbCvWEQLWN/gNSxN+JL+UngxxjIPooEFmOlohndzUOFOCTg9qBvNqIpp+52Cbb7 n5E0fJCB/MLAh8Iz5RaGUg+iISoV1RdtDdhJxrCVhbsqVOFZiadebDt3uZlDR9Q/dNruvw lvIaOj0k1LhGp9XGvyGO6Ldm4UNcZqDGq8H7wF50JNp7G21zYiv1rPaKHj+IOu1oYAosky 9tzsP38JgaJNzWeaCMPeHNDL+YIMHyJ8eZMjInJxPjeCLATjeGh+oYHjqxgE5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=a889d262a75894c71b9e84d106b04069ee824992 commit a889d262a75894c71b9e84d106b04069ee824992 Author: Hans Petter Selasky AuthorDate: 2021-12-20 16:21:49 +0000 Commit: Hans Petter Selasky CommitDate: 2022-01-07 13:08:59 +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 Sponsored by: NVIDIA Networking (cherry picked from commit f9978339d13c077975c8dce405c574ae88cbc148) --- 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 92ee7e1f97d0..5d2139cb4a31 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -2115,7 +2115,6 @@ dontblock: else m_freem(cm); if (controlp != NULL) { - orig_resid = 0; while (*controlp != NULL) controlp = &(*controlp)->m_next; }