From nobody Fri Jun 17 19:38:37 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 6487C85B792; Fri, 17 Jun 2022 19:38:39 +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 4LPq8s4pvLz3QKP; Fri, 17 Jun 2022 19:38:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494717; 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=vkkbUp9mqlGewU3+E5+AyMlp3wvV0BS+q15Ys5oVJec=; b=sEHGQzL3xerg1eRlKnWAACsToKUJs+y1yOxBFQzW9d4JKVpdN0u3uAg/hI2AVNgE5AdE44 2eHDrkgtkeTlteDiKAmrCWPemI8zpTMC8yYs2lLc8xBEWgULazU17UEjxcfjOrb8oSPMW2 Sr3Q2aHXVhF+xocMbLXERxPB9fZMEouqK121ZLJzoa7GWyqYrf2qqnPchDXOxaRnkOpMxV 3oqIYgaNHuT0a2LAtPj9N0CtauuJWVXZdSlpLFC/WkBBrtQ36E8dJDUuuif+NZZOGz1al/ puX3Dw8Lf2FRJeClEiEvf1MtkxVd6OyUuhVTJ6cZ8IgpZP+29vjUjZqMXWOeiA== 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 775DC25A40; Fri, 17 Jun 2022 19:38:37 +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 25HJcbOo014929; Fri, 17 Jun 2022 19:38:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJcb2s014928; Fri, 17 Jun 2022 19:38:37 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:38:37 GMT Message-Id: <202206171938.25HJcb2s014928@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: e09814f1f293 - stable/13 - linprocfs: plug set-but-not-unused vars 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: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e09814f1f293fc4f600d96ebafc32ce5300c1173 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494717; 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=vkkbUp9mqlGewU3+E5+AyMlp3wvV0BS+q15Ys5oVJec=; b=dwJYq5Pn+8azUJGOJTU68Yxl/YBc4cCgeI0/jdpwUmXGg6hqc81YjzXMYRW9WJzeuFSz9i XHYJe090O6wrrNgxE1SI5OHL9vDjkNKlWjaPXi0RenGlZCYW1oFBKniifgNu4dktvQQFHF 204nFkm+ZKlweM3VzVwRZigsOF3AhjjTtKpjo9bxqANTpXqbn5PvlbqdtL/PNYmqmXZWW/ 6Jt6tOPfZwVECK0/qfUoPojW2HZZv/EL8nuR0Dmr63y6L6fY1mvgWxrwZVIyrJ45Xq7nAC gGEuukgJ+SzDIwi3Q3XQ9sD5/PJCiVtalb49h8jY7Bm40dk8p9nd8KwU0/+/Ww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494717; a=rsa-sha256; cv=none; b=SCrA5PMXM5G3XbZO6TcfJ5BN4PxL03/D+M204hLAGK4ftAQtkjk7ZrvL066CnhPu3wyYT/ FUWX5vkNzsLKdpRAWlVh9Df1W3fFV8h4Kl3mNBs7usEBt+uEHWTTsDZVgNe3ArzU4NSiGi HxqJUu5RBYO4j+0Uaffmp4xwUGxc1NfFTtEPQ48cqFdBuZotH1a+Ak9jEjBpwwoz6h81NK 2YJ4f/KI95/GNKKsbFZSgKZoaknLScv+xCwPNnCBku7QC99O2mdpQt0Kim73iD7xTKFPxn uA2hd6pF+nOb7tY+UqWrZCymAna+NPKuOamIz5gi1pKhip2sMB5TxY+XBLTobA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=e09814f1f293fc4f600d96ebafc32ce5300c1173 commit e09814f1f293fc4f600d96ebafc32ce5300c1173 Author: Mateusz Guzik AuthorDate: 2021-11-24 21:18:36 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:33:42 +0000 linprocfs: plug set-but-not-unused vars Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit ae3d955404dac5c22fdbbc9bd1a3583b4c7d8637) --- sys/compat/linprocfs/linprocfs.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 42e1b5e075d3..296f53dfd8c7 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -1277,7 +1277,6 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) char *name = "", *freename = NULL; const char *l_map_str; ino_t ino; - int ref_count, shadow_count, flags; int error; struct vnode *vp; struct vattr vat; @@ -1331,9 +1330,6 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) vref(vp); if (lobj != obj) VM_OBJECT_RUNLOCK(lobj); - flags = obj->flags; - ref_count = obj->ref_count; - shadow_count = obj->shadow_count; VM_OBJECT_RUNLOCK(obj); if (vp != NULL) { vn_fullpath(vp, &name, &freename); @@ -1353,10 +1349,6 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) if (e_end == p->p_sysent->sv_usrstack) name = stack_str; } - } else { - flags = 0; - ref_count = 0; - shadow_count = 0; } /*