git: 7496792841b9 - main - ng_socket: don't assign NULL in C99 sparse initializer

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Mon, 09 May 2022 17:55:06 UTC
The branch main has been updated by glebius:

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

commit 7496792841b9528ed4160c1972449bfb1486bc41
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-05-09 17:42:48 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-05-09 17:42:48 +0000

    ng_socket: don't assign NULL in C99 sparse initializer
---
 sys/netgraph/ng_socket.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c
index d8a7d2f3701f..a7a70b0c35a6 100644
--- a/sys/netgraph/ng_socket.c
+++ b/sys/netgraph/ng_socket.c
@@ -1135,31 +1135,22 @@ dummy_disconnect(struct socket *so)
  */
 
 static struct pr_usrreqs ngc_usrreqs = {
-	.pru_abort =		NULL,
 	.pru_attach =		ngc_attach,
 	.pru_bind =		ngc_bind,
 	.pru_connect =		ngc_connect,
 	.pru_detach =		ngc_detach,
 	.pru_disconnect =	dummy_disconnect,
-	.pru_peeraddr =		NULL,
 	.pru_send =		ngc_send,
-	.pru_shutdown =		NULL,
 	.pru_sockaddr =		ng_getsockaddr,
-	.pru_close =		NULL,
 };
 
 static struct pr_usrreqs ngd_usrreqs = {
-	.pru_abort =		NULL,
 	.pru_attach =		ngd_attach,
-	.pru_bind =		NULL,
 	.pru_connect =		ngd_connect,
 	.pru_detach =		ngd_detach,
 	.pru_disconnect =	dummy_disconnect,
-	.pru_peeraddr =		NULL,
 	.pru_send =		ngd_send,
-	.pru_shutdown =		NULL,
 	.pru_sockaddr =		ng_getsockaddr,
-	.pru_close =		NULL,
 };
 
 /*