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, &lts);
        if (error)
                return (error);
-       if (ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000)
-               return (EINVAL);
-
        if (clockrt) {
                nanotime(&kts);
                timespecsub(ts, &kts);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to