Skip to content

Commit d9c1b2a

Browse files
Frederic WeisbeckerKAGA-KOKO
authored andcommitted
posix-cpu-timers: Remove confusing return value override
The end of the function cannot be reached with an error in variable ret. Unconfuse reviewers about that. Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 406dd42 commit d9c1b2a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/time/posix-cpu-timers.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,6 @@ static int posix_cpu_timer_set(struct k_itimer *timer, int timer_flags,
744744
*/
745745
cpu_timer_fire(timer);
746746
}
747-
748-
ret = 0;
749747
out:
750748
rcu_read_unlock();
751749
if (old)

0 commit comments

Comments
 (0)