* [PATCH] clocksource: arm_global_timer: Remove unnecessary ‘0’ values from err
@ 2024-07-05 5:21 Li kunyu
2024-07-13 10:16 ` [tip: timers/core] clocksource/driver/arm_global_timer: " tip-bot2 for Li kunyu
0 siblings, 1 reply; 2+ messages in thread
From: Li kunyu @ 2024-07-05 5:21 UTC (permalink / raw)
To: patrice.chotard, daniel.lezcano, tglx
Cc: linux-arm-kernel, linux-kernel, Li kunyu
err is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu@nfschina.com>
---
drivers/clocksource/arm_global_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c
index ab1c8c2b66b8..a05cfaab5f84 100644
--- a/drivers/clocksource/arm_global_timer.c
+++ b/drivers/clocksource/arm_global_timer.c
@@ -343,7 +343,7 @@ static int __init global_timer_of_register(struct device_node *np)
{
struct clk *gt_clk;
static unsigned long gt_clk_rate;
- int err = 0;
+ int err;
/*
* In A9 r2p0 the comparators for each processor with the global timer
--
2.18.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip: timers/core] clocksource/driver/arm_global_timer: Remove unnecessary ‘0’ values from err
2024-07-05 5:21 [PATCH] clocksource: arm_global_timer: Remove unnecessary ‘0’ values from err Li kunyu
@ 2024-07-13 10:16 ` tip-bot2 for Li kunyu
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Li kunyu @ 2024-07-13 10:16 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Li kunyu, Daniel Lezcano, x86, linux-kernel
The following commit has been merged into the timers/core branch of tip:
Commit-ID: f3539a6a6998e1e662fdb30af435f239d5931c98
Gitweb: https://git.kernel.org/tip/f3539a6a6998e1e662fdb30af435f239d5931c98
Author: Li kunyu <kunyu@nfschina.com>
AuthorDate: Fri, 05 Jul 2024 13:21:59 +08:00
Committer: Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Fri, 12 Jul 2024 16:07:05 +02:00
clocksource/driver/arm_global_timer: Remove unnecessary ‘0’ values from err
The 'err' variable is initialized whatever the code path, it is
pointless to initialize it when it is declared.
Signed-off-by: Li kunyu <kunyu@nfschina.com>
Link: https://lore.kernel.org/r/20240705052159.22235-1-kunyu@nfschina.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/clocksource/arm_global_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c
index ab1c8c2..a05cfaa 100644
--- a/drivers/clocksource/arm_global_timer.c
+++ b/drivers/clocksource/arm_global_timer.c
@@ -343,7 +343,7 @@ static int __init global_timer_of_register(struct device_node *np)
{
struct clk *gt_clk;
static unsigned long gt_clk_rate;
- int err = 0;
+ int err;
/*
* In A9 r2p0 the comparators for each processor with the global timer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-13 10:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-05 5:21 [PATCH] clocksource: arm_global_timer: Remove unnecessary ‘0’ values from err Li kunyu
2024-07-13 10:16 ` [tip: timers/core] clocksource/driver/arm_global_timer: " tip-bot2 for Li kunyu
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®