Skip to content

Commit 986af8d

Browse files
Li zemingKAGA-KOKO
authored andcommitted
alarmtimer: Remove unnecessary initialization of variable 'ret'
ret is assigned before checked, so it does not need to initialize the variable Signed-off-by: Li zeming <zeming@nfschina.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20230609182856.4660-1-zeming@nfschina.com
1 parent b9a40f2 commit 986af8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/alarmtimer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,
847847
struct restart_block *restart = &current->restart_block;
848848
struct alarm alarm;
849849
ktime_t exp;
850-
int ret = 0;
850+
int ret;
851851

852852
if (!alarmtimer_get_rtcdev())
853853
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)