lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 10 Aug 2021 15:07:11 -0000
From:   "tip-bot2 for Colin Ian King" <>
Cc:     Colin Ian King <>,
        Thomas Gleixner <>,,
Subject: [tip: timers/core] posix-timers: Remove redundant initialization of
 variable ret

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     1dae37c7e41d9a75a615ba7b0480acc2e04094d4
Author:        Colin Ian King <>
AuthorDate:    Wed, 21 Jul 2021 13:01:47 +01:00
Committer:     Thomas Gleixner <>
CommitterDate: Tue, 10 Aug 2021 17:02:11 +02:00

posix-timers: Remove redundant initialization of variable ret

The variable ret is being initialized with a value that is never read, it
is being updated later on. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")

Signed-off-by: Colin Ian King <>
Signed-off-by: Thomas Gleixner <>

 kernel/time/posix-timers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c
index dd5697d..3913222 100644
--- a/kernel/time/posix-timers.c
+++ b/kernel/time/posix-timers.c
@@ -336,7 +336,7 @@ void posixtimer_rearm(struct kernel_siginfo *info)
 int posix_timer_event(struct k_itimer *timr, int si_private)
 	enum pid_type type;
-	int ret = -1;
+	int ret;
 	 * FIXME: if ->sigq is queued we can race with
 	 * dequeue_signal()->posixtimer_rearm().

Powered by blists - more mailing lists