git: 96f286866dc1 - main - rpc.lockd: Remove set but unused variables.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 20 Jun 2023 16:29:20 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=96f286866dc148ace05bea363fecf4fc3b1824f0

commit 96f286866dc148ace05bea363fecf4fc3b1824f0
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-20 16:28:59 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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) {