svn commit: r316395 - head/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sun Apr 2 07:49:06 UTC 2017
Author: dchagin
Date: Sun Apr 2 07:49:05 2017
New Revision: 316395
URL: https://svnweb.freebsd.org/changeset/base/316395
Log:
Remove excess tv_nsec test as this is done by linux_to_native_timespec().
MFC after: 1 week
Modified:
head/sys/compat/linux/linux_futex.c
Modified: head/sys/compat/linux/linux_futex.c
==============================================================================
--- head/sys/compat/linux/linux_futex.c Sun Apr 2 07:47:28 2017 (r316394)
+++ head/sys/compat/linux/linux_futex.c Sun Apr 2 07:49:05 2017 (r316395)
@@ -294,9 +294,6 @@ futex_copyin_timeout(int op, struct l_ti
error = linux_to_native_timespec(ts, <s);
if (error)
return (error);
- if (ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000)
- return (EINVAL);
-
if (clockrt) {
nanotime(&kts);
timespecsub(ts, &kts);
More information about the svn-src-all
mailing list