git: b07549f3c156 - main - lib9p: Remove set but unused sockets[] array from l9p_start_server.

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

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

commit b07549f3c15637af6064d2f52b572f239f5ba870
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

    lib9p: Remove set but unused sockets[] array from l9p_start_server.
    
    Reported by:    GCC
---
 contrib/lib9p/transport/socket.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/contrib/lib9p/transport/socket.c b/contrib/lib9p/transport/socket.c
index fbba97c135cd..a78d8a6bfbea 100644
--- a/contrib/lib9p/transport/socket.c
+++ b/contrib/lib9p/transport/socket.c
@@ -73,7 +73,6 @@ l9p_start_server(struct l9p_server *server, const char *host, const char *port)
 	struct kevent kev[2];
 	struct kevent event[2];
 	int err, kq, i, val, evs, nsockets = 0;
-	int sockets[2];
 
 	memset(&hints, 0, sizeof(hints));
 	hints.ai_family = PF_UNSPEC;
@@ -98,7 +97,6 @@ l9p_start_server(struct l9p_server *server, const char *host, const char *port)
 			continue;
 		}
 
-		sockets[nsockets] = s;
 		EV_SET(&kev[nsockets++], s, EVFILT_READ, EV_ADD | EV_ENABLE, 0,
 		    0, 0);
 		listen(s, 10);