From owner-svn-src-all@freebsd.org Sun Apr 2 07:49:06 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 660E9D2ADE3; Sun, 2 Apr 2017 07:49:06 +0000 (UTC) (envelope-from dchagin@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 37A84C92; Sun, 2 Apr 2017 07:49:06 +0000 (UTC) (envelope-from dchagin@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v327n5WE043294; Sun, 2 Apr 2017 07:49:05 GMT (envelope-from dchagin@FreeBSD.org) Received: (from dchagin@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v327n5Nr043293; Sun, 2 Apr 2017 07:49:05 GMT (envelope-from dchagin@FreeBSD.org) Message-Id: <201704020749.v327n5Nr043293@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dchagin set sender to dchagin@FreeBSD.org using -f From: Dmitry Chagin Date: Sun, 2 Apr 2017 07:49:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316395 - head/sys/compat/linux X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2017 07:49:06 -0000 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);