git: 497c2cf4f84d - main - ng_ksocket: Remove unused variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 08 Apr 2022 00:03:18 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=497c2cf4f84d29c5e102544ff31e991f551e5f8c

commit 497c2cf4f84d29c5e102544ff31e991f551e5f8c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-08 00:01:27 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-08 00:01:27 +0000

    ng_ksocket: Remove unused variable.
---
 sys/netgraph/ng_ksocket.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c
index ba9845410e42..7c8cbd38e98e 100644
--- a/sys/netgraph/ng_ksocket.c
+++ b/sys/netgraph/ng_ksocket.c
@@ -665,7 +665,6 @@ ng_ksocket_rcvmsg(node_p node, item_p item, hook_p lasthook)
 	struct ng_mesg *resp = NULL;
 	int error = 0;
 	struct ng_mesg *msg;
-	ng_ID_t raddr;
 
 	NGI_GET_MSG(item, msg);
 	switch (msg->header.typecookie) {
@@ -724,7 +723,7 @@ ng_ksocket_rcvmsg(node_p node, item_p item, hook_p lasthook)
 			if (error != 0 && error != EWOULDBLOCK)
 				ERROUT(error);
 			priv->response_token = msg->header.token;
-			raddr = priv->response_addr = NGI_RETADDR(item);
+			priv->response_addr = NGI_RETADDR(item);
 			break;
 		    }
 
@@ -750,7 +749,7 @@ ng_ksocket_rcvmsg(node_p node, item_p item, hook_p lasthook)
 			if ((so->so_state & SS_ISCONNECTING) != 0) {
 				/* We will notify the sender when we connect */
 				priv->response_token = msg->header.token;
-				raddr = priv->response_addr = NGI_RETADDR(item);
+				priv->response_addr = NGI_RETADDR(item);
 				priv->flags |= KSF_CONNECTING;
 				ERROUT(EINPROGRESS);
 			}