From 42188bb5c118f456af0606a2ce6ae26378716415 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 16 Nov 2021 09:43:33 -0500 Subject: [PATCH] unix: Remove a write-only local variable Reported by: clang MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/kern/uipc_usrreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 0ee29143c731..fe018aa65d85 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1006,7 +1006,7 @@ uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam, struct unpcb *unp, *unp2; struct socket *so2; u_int mbcnt, sbcc; - int freed, error; + int error; unp = sotounpcb(so); KASSERT(unp != NULL, ("%s: unp == NULL", __func__)); @@ -1014,7 +1014,7 @@ uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam, so->so_type == SOCK_SEQPACKET, ("%s: socktype %d", __func__, so->so_type)); - freed = error = 0; + error = 0; if (flags & PRUS_OOB) { error = EOPNOTSUPP; goto release;