Skip to content

Commit 1dae37c

Browse files
Colin Ian KingKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 698429f commit 1dae37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/posix-timers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ void posixtimer_rearm(struct kernel_siginfo *info)
336336
int posix_timer_event(struct k_itimer *timr, int si_private)
337337
{
338338
enum pid_type type;
339-
int ret = -1;
339+
int ret;
340340
/*
341341
* FIXME: if ->sigq is queued we can race with
342342
* dequeue_signal()->posixtimer_rearm().

0 commit comments

Comments
 (0)