mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] time: alarmtimer: remove unnecessary ‘0’ values from ret
@ 2023-06-09 18:28 Li zeming
  2023-06-10 12:45 ` [tip: timers/core] alarmtimer: Remove unnecessary initialization of variable 'ret' tip-bot2 for Li zeming
  2023-06-18 20:49 ` tip-bot2 for Li zeming
  0 siblings, 2 replies; 3+ messages in thread
From: Li zeming @ 2023-06-09 18:28 UTC (permalink / raw)
  To: jstultz, tglx, sboyd; +Cc: linux-kernel, Li zeming

ret is assigned first, so it does not need to initialize the assignment.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 kernel/time/alarmtimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
index 65c20c4f0b7f..8d7ead245089 100644
--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
@@ -847,7 +847,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,
 	struct restart_block *restart = &current->restart_block;
 	struct alarm alarm;
 	ktime_t exp;
-	int ret = 0;
+	int ret;
 
 	if (!alarmtimer_get_rtcdev())
 		return -EOPNOTSUPP;
-- 
2.18.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-18 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09 18:28 [PATCH] time: alarmtimer: remove unnecessary ‘0’ values from ret Li zeming
2023-06-10 12:45 ` [tip: timers/core] alarmtimer: Remove unnecessary initialization of variable 'ret' tip-bot2 for Li zeming
2023-06-18 20:49 ` tip-bot2 for Li zeming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®