git: af40f9bfa6ef - main - socket: plug set-but-not-used vars

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Tue, 14 Dec 2021 17:13:22 UTC
The branch main has been updated by mjg:

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

commit af40f9bfa6efc4152b20326783450a67177f03a5
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-14 17:12:53 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-12-14 17:12:53 +0000

    socket: plug set-but-not-used vars
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/kern/sys_socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c
index 8f24017381df..4e752fa6b664 100644
--- a/sys/kern/sys_socket.c
+++ b/sys/kern/sys_socket.c
@@ -598,7 +598,7 @@ soaio_process_job(struct socket *so, struct sockbuf *sb, struct kaiocb *job)
 	struct ucred *td_savedcred;
 	struct thread *td;
 	struct file *fp;
-	size_t cnt, done, job_total_nbytes;
+	size_t cnt, done, job_total_nbytes __diagused;
 	long ru_before;
 	int error, flags;