summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-06 10:07:01 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-06 10:07:01 +0100
commit1f89abf69d2c485c38da9a45161e806de0f86f2f (patch)
treeb4ea5044700b4ca34360e42d134e185fa8c47520 /src/os_unix.c
parent99c48fe9974b8d70ca33674658a3da722b0d6466 (diff)
downloadvim-git-1f89abf69d2c485c38da9a45161e806de0f86f2f.tar.gz
patch 8.2.5062: Coverity warns for dead codev8.2.5062
Problem: Coverity warns for dead code. Solution: Remove the dead code.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index b23adb710..72f80c95d 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -8422,7 +8422,7 @@ start_timeout(long msec)
if (ret == 0)
{
alarm_pending = sigismember(&sigs, SIGALRM);
- ret = ret == 0 ? sigprocmask(SIG_SETMASK, &saved_sigs, NULL) : ret;
+ ret = sigprocmask(SIG_SETMASK, &saved_sigs, NULL);
}
if (unlikely(ret != 0 || alarm_pending < 0))
{