Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hrtimer: Don't zero-initialize ret in hrtimer_nanosleep()

The value will be assigned to before any usage.
No other function in hrtimer.c does such a zero-initialization.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-7-095357392669@linutronix.de

authored by

Thomas Weißschuh (Schneider Electric) and committed by
Thomas Gleixner
194675f1 8ef28070

+1 -1
+1 -1
kernel/time/hrtimer.c
··· 2329 2329 { 2330 2330 struct restart_block *restart; 2331 2331 struct hrtimer_sleeper t; 2332 - int ret = 0; 2332 + int ret; 2333 2333 2334 2334 hrtimer_setup_sleeper_on_stack(&t, clockid, mode); 2335 2335 hrtimer_set_expires_range_ns(&t.timer, rqtp, current->timer_slack_ns);