Don't reinitialize fields that are already initialized by getpbuf().

This commit is contained in:
Alan Cox 2003-04-05 23:02:58 +00:00
parent c81e825f6c
commit ef38cda165
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113149
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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;