git: e9c7ec22877f - main - aio: whack "set but not used" warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Nov 2021 17:00:09 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=e9c7ec22877f461f530dfe1cb8e17086300c0ee8 commit e9c7ec22877f461f530dfe1cb8e17086300c0ee8 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-11-14 16:59:53 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2021-11-14 16:59:53 +0000 aio: whack "set but not used" warnings --- 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 d06b18140e71..5f469f56f677 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -764,7 +764,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; @@ -784,7 +783,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; @@ -2478,7 +2476,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; @@ -2489,7 +2487,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.