Commit 986af8dc authored by Li zeming's avatar Li zeming Committed by Thomas Gleixner

alarmtimer: Remove unnecessary initialization of variable 'ret'

ret is assigned before checked, so it does not need to initialize the
variable
Signed-off-by: default avatarLi zeming <zeming@nfschina.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230609182856.4660-1-zeming@nfschina.com
parent b9a40f24
...@@ -847,7 +847,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags, ...@@ -847,7 +847,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,
struct restart_block *restart = &current->restart_block; struct restart_block *restart = &current->restart_block;
struct alarm alarm; struct alarm alarm;
ktime_t exp; ktime_t exp;
int ret = 0; int ret;
if (!alarmtimer_get_rtcdev()) if (!alarmtimer_get_rtcdev())
return -EOPNOTSUPP; return -EOPNOTSUPP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment