From nobody Sun Feb 27 16:47:31 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 9431419E948B; Sun, 27 Feb 2022 16:47: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 4K68ZC3m0Jz4lTH; Sun, 27 Feb 2022 16:47:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645980451; 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=u6yTMlupddmfaMdS+kZlwKlHZEZO/nvgUk6ajG8nNeU=; b=nErkOmtfX45wEHMHCdCmFLAS05CEa+UJVcKo9O9fZRBB+wRzRTokfDvYsuTPKkEn2jBKSW J6OTDRtoPvcOi2/RqBYZh0le7OcaLCyuKBWSL2smhvM592kJwOC5SFgRDJ/STYK5nSyUqe F3SJLpE9t083Qtl3XMs45grPqcq5LZxwSILWNdk65EJcY07VUJoFi5atMasueGTEC+Znq+ Kcfr0jvCJhnhLYRaMwtlgxPslnIoTZIzn4avrGclsgXRU/GrWj8aZx6f1glOUmbbD0mTa4 P6ig47+uXPI/CnPFUw+d6VyyxAJOjmBr4t5/vpUlZY5XqGPS+uSwWki7pebeuA== 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 60B9E2D29; Sun, 27 Feb 2022 16:47: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 21RGlVds036552; Sun, 27 Feb 2022 16:47:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21RGlVtV036551; Sun, 27 Feb 2022 16:47:31 GMT (envelope-from git) Date: Sun, 27 Feb 2022 16:47:31 GMT Message-Id: <202202271647.21RGlVtV036551@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: 9891cb1e7634 - main - Eliminate curlen, it's set but never used 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: 9891cb1e7634940dbbf90b61ca256cdee75b441f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645980451; 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=u6yTMlupddmfaMdS+kZlwKlHZEZO/nvgUk6ajG8nNeU=; b=Qklzfxty2+sUdZjrVcceg82Kpf07RICBDIn41D0m8+LszjDOV0IrSh2gHQtjBEa5i0Kmkl AZzxNNVo+XuYGxDy6tjW4aKsLTyo85LIu+PDcwsTBtaltEt/s2NYxWatjsEhamjsmma0S6 P/MJlKOB6sFsLMBypTwGqJMM8d7NXQl08BmEbiG8nJRDJxn6dsBEAdEILSEE96UwtrK8rV muMkpZAv7CKcJ+uWIfqRnuPI7Rkn6I1aiIpUU/wmPKPWNh6YN9g5GSb/su40CehN6fyu4h baBli0HUAGiP+80WHUaLJHyzJoYcilfsBDCSGbPechlLeutf96uRSIIP+Bwy5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645980451; a=rsa-sha256; cv=none; b=DGaJVDULBQBEfeT6fM2Id+zrH+bQ+5fgmhsiOivVT1V3FLr7SiGeBQ55TLI3p39OXVV4TA lzVfWE4z8Y80p9WeP4hIUjYb3yuUnjOtATVGN7RSDYwdUjOovrjnrqhu/2dAW/Sq9E+5SR 56y1E2WqCYp8oY7bK2I+eNBC4Aed/zu0mLOEeimN7Vr8IuChPV+h/slahLmBCjzESQHEDg cKK4+aKI05lJJ8QZwn1ZYM9ce03geFzPnTP7N7lTWliesK0b7QZcL7FNf7vCODB10vYQnf KJUA4yRoyQp4Vm2qTf/pGnpV/15Opz5H7KCcPDDIEy+kYr/MlWcWXEJXl5Ve9Q== 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=9891cb1e7634940dbbf90b61ca256cdee75b441f commit 9891cb1e7634940dbbf90b61ca256cdee75b441f Author: Warner Losh AuthorDate: 2022-02-24 23:32:42 +0000 Commit: Warner Losh CommitDate: 2022-02-27 16:02:45 +0000 Eliminate curlen, it's set but never used Sponsored by: Netflix --- sys/kern/uipc_shm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c index 0ee2147da122..9f556efde3f1 100644 --- a/sys/kern/uipc_shm.c +++ b/sys/kern/uipc_shm.c @@ -2033,12 +2033,10 @@ sysctl_posix_shm_list(SYSCTL_HANDLER_ARGS) struct sbuf sb; struct kinfo_file kif; u_long i; - ssize_t curlen; int error, error2; sbuf_new_for_sysctl(&sb, NULL, sizeof(struct kinfo_file) * 5, req); sbuf_clear_flags(&sb, SBUF_INCLUDENUL); - curlen = 0; error = 0; sx_slock(&shm_dict_lock); for (i = 0; i < shm_hash + 1; i++) { @@ -2056,7 +2054,6 @@ sysctl_posix_shm_list(SYSCTL_HANDLER_ARGS) 0 : ENOMEM; if (error != 0) break; - curlen += kif.kf_structsize; } } sx_sunlock(&shm_dict_lock);