Date: Tue, 23 Nov 2021 14:32:58 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 35dfdb88eafd - stable/13 - unix: Remove a write-only local variable Message-ID: <202111231432.1ANEWwHb039038@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=35dfdb88eafdb00f93dee35fabedc7212340b295 commit 35dfdb88eafdb00f93dee35fabedc7212340b295 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-11-16 14:43:33 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-11-23 14:32:46 +0000 unix: Remove a write-only local variable Reported by: clang Sponsored by: The FreeBSD Foundation (cherry picked from commit 42188bb5c118f456af0606a2ce6ae26378716415) --- 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 5dca0714c400..35f2de7dbeb8 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1001,7 +1001,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__)); @@ -1009,7 +1009,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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111231432.1ANEWwHb039038>