aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-11-14 16:59:53 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-11-14 16:59:53 +0000
commite9c7ec22877f461f530dfe1cb8e17086300c0ee8 (patch)
tree0c1985725b33f4b29363f44250f5e66bc4a0d2da /sys/kern/vfs_aio.c
parent7e9680d3be484baac7fe78cef2be4e7ce4b4946f (diff)
downloadsrc-e9c7ec22877f461f530dfe1cb8e17086300c0ee8.tar.gz
src-e9c7ec22877f461f530dfe1cb8e17086300c0ee8.zip
aio: whack "set but not used" warnings
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c5
1 files changed, 1 insertions, 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.