diff options
author | gibbs <gibbs@FreeBSD.org> | 1998-09-15 22:07:24 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1998-09-15 22:07:24 +0000 |
commit | 5e2468870954157c6bebeb864aeed47fa9a2dd20 (patch) | |
tree | 7bbf345f9b19916ed21e918bcb46ea37c2e072e3 /sys/isa/fd.c | |
parent | 13fbdd93b8e155b78b48c38b22fcc3137014fed2 (diff) | |
download | FreeBSD-src-5e2468870954157c6bebeb864aeed47fa9a2dd20.zip FreeBSD-src-5e2468870954157c6bebeb864aeed47fa9a2dd20.tar.gz |
Nuke uninitialized varible fd from retrier(). Change the devstat code
to reference fdc->fd instead.
Diffstat (limited to 'sys/isa/fd.c')
-rw-r--r-- | sys/isa/fd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 8c6a2d6..d04f98a 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -43,7 +43,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.121 1998/09/14 19:56:39 sos Exp $ + * $Id: fd.c,v 1.122 1998/09/15 08:15:28 gibbs Exp $ * */ @@ -1744,7 +1744,6 @@ retrier(fdcu) struct subdev *sd; fdc_p fdc = fdc_data + fdcu; register struct buf *bp; - struct fd_data *fd; int fdu; bp = bufq_first(&fdc->head); @@ -1794,7 +1793,7 @@ retrier(fdcu) bufq_remove(&fdc->head, bp); /* Tell devstat we have finished with the transaction */ - devstat_end_transaction(&fd->device_stats, + devstat_end_transaction(&fdc->fd->device_stats, bp->b_bcount - bp->b_resid, DEVSTAT_TAG_NONE, (bp->b_flags & B_READ) ? DEVSTAT_READ : |