git: 8165540af2cd - stable/13 - aio: whack "set but not used" warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Sep 2023 21:56:36 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=8165540af2cd270e0dd8ffdbb72a6e2e25dbe3d5
commit 8165540af2cd270e0dd8ffdbb72a6e2e25dbe3d5
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-14 16:59:53 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-09-06 21:56:09 +0000
aio: whack "set but not used" warnings
(cherry picked from commit e9c7ec22877f461f530dfe1cb8e17086300c0ee8)
---
sys/kern/vfs_aio.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 5ad912ea38c4..5ffc0b31c2ae 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -758,7 +758,6 @@ aio_process_rw(struct kaiocb *job)
{
struct ucred *td_savedcred;
struct thread *td;
- struct aiocb *cb;
struct file *fp;
ssize_t cnt;
long msgsnd_st, msgsnd_end;
@@ -778,7 +777,6 @@ aio_process_rw(struct kaiocb *job)
td_savedcred = td->td_ucred;
td->td_ucred = job->cred;
job->uiop->uio_td = td;
- cb = &job->uaiocb;
fp = job->fd_file;
opcode = job->uaiocb.aio_lio_opcode;
@@ -2472,7 +2470,7 @@ aio_biowakeup(struct bio *bp)
size_t nbytes;
long bcount = bp->bio_bcount;
long resid = bp->bio_resid;
- int error, opcode, nblks;
+ int opcode, nblks;
int bio_error = bp->bio_error;
uint16_t flags = bp->bio_flags;
@@ -2483,7 +2481,6 @@ aio_biowakeup(struct bio *bp)
nbytes =bcount - resid;
atomic_add_acq_long(&job->nbytes, nbytes);
nblks = btodb(nbytes);
- error = 0;
/*
* If multiple bios experienced an error, the job will reflect the
* error of whichever failed bio completed last.