[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230808173611.3066-1-zeming@nfschina.com>
Date: Wed, 9 Aug 2023 01:36:11 +0800
From: Li zeming <zeming@...china.com>
To: jstultz@...gle.com, tglx@...utronix.de, sboyd@...nel.org
Cc: linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] kernel: time: clocksource: Remove unnecessary ‘0’ values from ret
ret is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li zeming <zeming@...china.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
Powered by blists - more mailing lists