I misplaced a local variable yesterday.
This commit is contained in:
parent
107a67d351
commit
30a9d81e1c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user