After r186194 the *fs_strategy() functions always return 0.

So we are no longer interested in the error returned from
the *fs_doio() functions. With that we can remove the
error variable as its value is unused now.

Submitted by:	Christoph Mallon christoph.mallon@gmx.de
This commit is contained in:
bz 2009-01-31 18:06:34 +00:00
parent 9fd12161ca
commit fb1404080f
2 changed files with 2 additions and 4 deletions

View File

@ -784,7 +784,6 @@ static int nwfs_strategy (ap)
struct buf *bp=ap->a_bp;
struct ucred *cr;
struct thread *td;
int error = 0;
NCPVNDEBUG("\n");
if (bp->b_flags & B_ASYNC)
@ -801,7 +800,7 @@ static int nwfs_strategy (ap)
* otherwise just do it ourselves.
*/
if ((bp->b_flags & B_ASYNC) == 0 )
error = nwfs_doio(ap->a_vp, bp, cr, td);
(void)nwfs_doio(ap->a_vp, bp, cr, td);
return (0);
}

View File

@ -850,7 +850,6 @@ smbfs_strategy (ap)
struct buf *bp=ap->a_bp;
struct ucred *cr;
struct thread *td;
int error = 0;
SMBVDEBUG("\n");
if (bp->b_flags & B_ASYNC)
@ -863,7 +862,7 @@ smbfs_strategy (ap)
cr = bp->b_wcred;
if ((bp->b_flags & B_ASYNC) == 0 )
error = smbfs_doio(ap->a_vp, bp, cr, td);
(void)smbfs_doio(ap->a_vp, bp, cr, td);
return (0);
}