[PATCH] clocksource/drivers/timer-ti-dm: Remove an unused field in struct dmtimer

Christophe JAILLET posted 1 patch 1 year, 7 months ago
There is a newer version of this series
drivers/clocksource/timer-ti-dm.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] clocksource/drivers/timer-ti-dm: Remove an unused field in struct dmtimer
Posted by Christophe JAILLET 1 year, 7 months ago
In "struct dmtimer", the 'rate' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only.
---
 drivers/clocksource/timer-ti-dm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
index 56acf2617262..b7a34b1a975e 100644
--- a/drivers/clocksource/timer-ti-dm.c
+++ b/drivers/clocksource/timer-ti-dm.c
@@ -129,7 +129,6 @@ struct dmtimer {
 	void __iomem	*func_base;	/* function register base */
 
 	atomic_t enabled;
-	unsigned long rate;
 	unsigned reserved:1;
 	unsigned posted:1;
 	unsigned omap1:1;
-- 
2.44.0
Re: [PATCH] clocksource/drivers/timer-ti-dm: Remove an unused field in struct dmtimer
Posted by Daniel Lezcano 1 year, 7 months ago
On 30/04/2024 23:42, Christophe JAILLET wrote:
> In "struct dmtimer", the 'rate' field is unused.
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---

Applied, thanks

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog