summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-04-15 15:32:22 +0000
committerdchagin <dchagin@FreeBSD.org>2017-04-15 15:32:22 +0000
commite06d0443ceaec26f9897b92956f52ee969632081 (patch)
tree913249d95d639573aab2dde40fea890d722a2393
parent164647d446bf17352e9f5bee7a69c1f3531a8054 (diff)
downloadFreeBSD-src-e06d0443ceaec26f9897b92956f52ee969632081.zip
FreeBSD-src-e06d0443ceaec26f9897b92956f52ee969632081.tar.gz
MFC r316395:
Remove excess tv_nsec test as this is done by linux_to_native_timespec().
-rw-r--r--sys/compat/linux/linux_futex.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 059e9b3..3075afb 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -294,9 +294,6 @@ futex_copyin_timeout(int op, struct l_timespec *luts, int clockrt,
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);
OpenPOWER on IntegriCloud