public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel: time: clocksource: Remove unnecessary ‘0’ values from ret
@ 2023-08-08 17:36 Li zeming
  2023-08-07  3:29 ` kernel test robot
  2023-08-27 18:11 ` Thomas Gleixner
  0 siblings, 2 replies; 3+ messages in thread
From: Li zeming @ 2023-08-08 17:36 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/clocksource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 91836b727cef..b4ad38812ef7 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -1289,7 +1289,7 @@ static int clocksource_unbind(struct clocksource *cs)
  */
 int clocksource_unregister(struct clocksource *cs)
 {
-	int ret = 0;
+	int ret;
 
 	mutex_lock(&clocksource_mutex);
 	if (!list_empty(&cs->list))
-- 
2.18.2


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

end of thread, other threads:[~2023-08-27 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 17:36 [PATCH] kernel: time: clocksource: Remove unnecessary ‘0’ values from ret Li zeming
2023-08-07  3:29 ` kernel test robot
2023-08-27 18:11 ` Thomas Gleixner

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