The branch main has been updated by markj:

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

commit 42188bb5c118f456af0606a2ce6ae26378716415
Author:     Mark Johnston <[email protected]>
AuthorDate: 2021-11-16 14:43:33 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2021-11-16 18:30:22 +0000

    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;

Reply via email to