From nobody Tue Jun 20 16:29:20 2023 X-Original-To: dev-commits-src-main@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 4QlsXc3XfRz4gJTl; Tue, 20 Jun 2023 16:29:20 +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 4QlsXc2QNHz4L0P; Tue, 20 Jun 2023 16:29:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278560; 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=IDy+tlh/vJP/PIVjOIbEqZqm9T+tCWV6shYfdfpwpnk=; b=fznmhgGR1Xw1OW43CIDPhGEKBdJdpyhf4wLX+vNoP2KIgE5qqzANp1/shqscJKwSe8E5l+ sa2X0tsjv48qkcooAiB9H9dH+Nm7d8KmDGdldOQCZ9KpXpdTmXKPSM/TAtgGo6ZcyJrRzz bqUbF/a+qsDgZMUjD8Z99vAe7Qjz3B5CU5pOD2uHSQPC7EVJTEfFaF3uquU6c5UzuFOf7I TA4cnkbkCIUJIYdS4LKsa6RBWI9yhSolDx1yFGvAReIeZv+zLEkT35Mlm5JrsaiT+1w3tj Rth9/3BmRCasJe26YEKJkCVg2HZ2luclIcbvP5EDTbreawlNf5oyC52P0kwRVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278560; 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=IDy+tlh/vJP/PIVjOIbEqZqm9T+tCWV6shYfdfpwpnk=; b=NpuJLT1Fgpi4xsYUiZ8H5VX/i97uFzFCdRuuHpJkDbFilNLnKn4KC/XLGpUMOa1a42ropC 6zSOUQTICYBzbhQSS202jJW0Y5X6YAHHk61qn90jXX0+F0UyfLGEfLzwBzvUhG+IWkiHKI LTSDz2WTl8MtfB5RioJ0vzuZxdr8FYeDJCKysqZkV93l1uVRMZ7xhxg4Bv6+lyTpWO/Chd jVcxCULBI9jDCtO+k+GtSmY1PC1nPWMWfR+iOp95hK6nDvXYA71MQbQl7oVHciP9+UKczH vKPHVnBUh7su65OUxIYxuG28H0Uqyjbg9UP3eZ7fQBGZFg0rJoHncBhcBMmeWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278560; a=rsa-sha256; cv=none; b=MdTcbMCDpS0yWEVI9IxKmdUxmtHpzxTyLxYADKQwLKFWKvBxUnOugAAsnI6whkOg1S6Nkx VkdLR8vZ4TTCX4oE8+oWgTKAde9IFN48Vn7XqyLA413v1Ky8v87C37kvzaKoO/c0dnjD6C dEWTQMJ8Y6dsbv4WqWTrIShBfhBvxFURgMJwkpjjlYhpTJH5JQMa40Mwjf7jtYRrMI46E1 74PZozJPTW7NIZBnQ+BXAbJpDVOTrTXweebciCsi3W1K/r/oke1s0p3ixg0tW4LRKYUMaK gQqILyVYSj0cq/yKfbWf9bDW5QXEe9gHdlYw9pjqueC4aIYUwJ/8RmH+3fzfuA== 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 4QlsXc1Wztz166Q; Tue, 20 Jun 2023 16:29:20 +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 35KGTK51045121; Tue, 20 Jun 2023 16:29:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTKqN045120; Tue, 20 Jun 2023 16:29:20 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:20 GMT Message-Id: <202306201629.35KGTKqN045120@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 96f286866dc1 - main - rpc.lockd: Remove set but unused variables. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 96f286866dc148ace05bea363fecf4fc3b1824f0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=96f286866dc148ace05bea363fecf4fc3b1824f0 commit 96f286866dc148ace05bea363fecf4fc3b1824f0 Author: John Baldwin AuthorDate: 2023-06-20 16:28:59 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:28:59 +0000 rpc.lockd: Remove set but unused variables. Reported by: GCC --- usr.sbin/rpc.lockd/kern.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c index 08566a5b4658..b25ca828fa27 100644 --- a/usr.sbin/rpc.lockd/kern.c +++ b/usr.sbin/rpc.lockd/kern.c @@ -572,16 +572,11 @@ void show(LOCKD_MSG *mp) { static char hex[] = "0123456789abcdef"; - struct fid *fidp; - fsid_t *fsidp; size_t len; u_int8_t *p, *t, buf[NFS_SMALLFH*3+1]; syslog(LOG_DEBUG, "process ID: %lu\n", (long)mp->lm_msg_ident.pid); - fsidp = (fsid_t *)&mp->lm_fh; - fidp = (struct fid *)((u_int8_t *)&mp->lm_fh + sizeof(fsid_t)); - for (t = buf, p = (u_int8_t *)mp->lm_fh, len = mp->lm_fh_len; len > 0; ++p, --len) {