mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
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
This commit is contained in:
parent
b9a40f24d8
commit
986af8dc5a
@ -847,7 +847,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,
|
||||
struct restart_block *restart = ¤t->restart_block;
|
||||
struct alarm alarm;
|
||||
ktime_t exp;
|
||||
int ret = 0;
|
||||
int ret;
|
||||
|
||||
if (!alarmtimer_get_rtcdev())
|
||||
return -EOPNOTSUPP;
|
||||
|
Loading…
Reference in New Issue
Block a user