diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2022-08-31 15:18:08 -0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2022-08-31 15:18:08 -0400 |
commit | d92d3a3c4a7af1ebe56d58c32986ab410f6071ec (patch) | |
tree | dc9d1165c287da28953546cdad9184e5828d14ab /newlib/libc/posix/usleep.c | |
parent | dd1122e21cb4ea78ce4c5894787c8f085469f9dd (diff) | |
download | newlib-d92d3a3c4a7af1ebe56d58c32986ab410f6071ec.zip newlib-d92d3a3c4a7af1ebe56d58c32986ab410f6071ec.tar.gz newlib-d92d3a3c4a7af1ebe56d58c32986ab410f6071ec.tar.bz2 |
Fix some Coverity Scan errors.
Diffstat (limited to 'newlib/libc/posix/usleep.c')
-rw-r--r-- | newlib/libc/posix/usleep.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/newlib/libc/posix/usleep.c b/newlib/libc/posix/usleep.c index 9322b65..cc1b314 100644 --- a/newlib/libc/posix/usleep.c +++ b/newlib/libc/posix/usleep.c @@ -15,7 +15,6 @@ int usleep(useconds_t useconds) ts.tv_sec = (long int)useconds / 1000000; ts.tv_nsec = ((long int)useconds % 1000000) * 1000; if (!nanosleep(&ts,&ts)) return 0; - if (errno == EINTR) return ts.tv_sec; return -1; } |