From a1044f4fd8fb8071a59d73522c09748e605f8d39 Mon Sep 17 00:00:00 2001 From: kevlo Date: Tue, 13 Nov 2012 06:03:43 +0000 Subject: Use uiomove return value instead of returning 0. --- sys/dev/adb/adb_mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/adb/adb_mouse.c b/sys/dev/adb/adb_mouse.c index 7eecb7a..70ad5c3 100644 --- a/sys/dev/adb/adb_mouse.c +++ b/sys/dev/adb/adb_mouse.c @@ -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); } -- cgit v1.1