Don't reinitialize fields that are already initialized by getpbuf().
This commit is contained in:
parent
c81e825f6c
commit
ef38cda165
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113149
@ -45,7 +45,7 @@ physio(dev_t dev, struct uio *uio, int ioflag)
|
||||
|
||||
bp = getpbuf(NULL);
|
||||
sa = bp->b_data;
|
||||
error = bp->b_error = 0;
|
||||
error = 0;
|
||||
|
||||
/* XXX: sanity check */
|
||||
if(dev->si_iosize_max < PAGE_SIZE) {
|
||||
|
@ -1105,7 +1105,7 @@ aio_qphysio(struct proc *p, struct aiocblist *aiocbe)
|
||||
*/
|
||||
bp->b_caller1 = p;
|
||||
bp->b_dev = vp->v_rdev;
|
||||
error = bp->b_error = 0;
|
||||
error = 0;
|
||||
|
||||
bp->b_bcount = cb->aio_nbytes;
|
||||
bp->b_bufsize = cb->aio_nbytes;
|
||||
|
Loading…
Reference in New Issue
Block a user