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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242948

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);
}