Use uiomove return value instead of returning 0.

This commit is contained in:
Kevin Lo 2012-11-13 06:03:43 +00:00
parent 72794e9e2c
commit 07ab70a447

View File

@ -569,9 +569,9 @@ ams_read(struct cdev *dev, struct uio *uio, int flag)
mtx_unlock(&sc->sc_mtx);
uiomove(outpacket,len,uio);
error = uiomove(outpacket,len,uio);
return (0);
return (error);
}