Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2012 06:03:43 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242948 - head/sys/dev/adb
Message-ID:  <201211130603.qAD63h37094234@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Tue Nov 13 06:03:43 2012
New Revision: 242948
URL: http://svnweb.freebsd.org/changeset/base/242948

Log:
  Use uiomove return value instead of returning 0.

Modified:
  head/sys/dev/adb/adb_mouse.c

Modified: head/sys/dev/adb/adb_mouse.c
==============================================================================
--- head/sys/dev/adb/adb_mouse.c	Tue Nov 13 05:58:52 2012	(r242947)
+++ head/sys/dev/adb/adb_mouse.c	Tue Nov 13 06:03:43 2012	(r242948)
@@ -569,9 +569,9 @@ ams_read(struct cdev *dev, struct uio *u
 
 	mtx_unlock(&sc->sc_mtx);
 
-	uiomove(outpacket,len,uio);
+	error = uiomove(outpacket,len,uio);
 
-	return (0);
+	return (error);
 }
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211130603.qAD63h37094234>