Remove redundant error check in Utility::GetTime

Coverity Bug ID: 1167732
This commit is contained in:
Gunnar Beutner 2015-03-03 09:16:53 +01:00
parent 274e6e9785
commit 3e12bfef25
1 changed files with 2 additions and 5 deletions

View File

@ -256,11 +256,8 @@ double Utility::GetTime(void)
#else /* _WIN32 */
struct timeval tv;
if (gettimeofday(&tv, NULL) < 0) {
BOOST_THROW_EXCEPTION(posix_error()
<< boost::errinfo_api_function("gettimeofday")
<< boost::errinfo_errno(errno));
}
int rc = gettimeofday(&tv, NULL);
VERIFY(rc >= 0);
return tv.tv_sec + tv.tv_usec / 1000000.0;
#endif /* _WIN32 */