I misplaced a local variable yesterday.

This commit is contained in:
phk 2002-09-28 13:42:04 +00:00
parent 107a67d351
commit 30a9d81e1c

View File

@ -253,13 +253,13 @@ spec_read(ap)
struct uio *uio;
dev_t dev;
int error, resid;
struct cdevsw *dsw;
vp = ap->a_vp;
dev = vp->v_rdev;
uio = ap->a_uio;
td = uio->uio_td;
resid = uio->uio_resid;
struct cdevsw *dsw;
if (resid == 0)
return (0);