2023-08-01 02:58:25

by Yu Liao

[permalink] [raw]
Subject: [PATCH -next] timer: Replace del_timer() in comments

Adjust del_timer() to the new preferred function name timer_delete().

Signed-off-by: Yu Liao <[email protected]>
---
kernel/time/timer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 63a8ce7177dd..4864fc4c7b91 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1165,10 +1165,10 @@ EXPORT_SYMBOL(mod_timer_pending);
*
* mod_timer(timer, expires) is equivalent to:
*
- * del_timer(timer); timer->expires = expires; add_timer(timer);
+ * timer_delete(timer); timer->expires = expires; add_timer(timer);
*
* mod_timer() is more efficient than the above open coded sequence. In
- * case that the timer is inactive, the del_timer() part is a NOP. The
+ * case that the timer is inactive, the timer_delete() part is a NOP. The
* timer is in any case activated with the new expiry time @expires.
*
* Note that if there are multiple unserialized concurrent users of the
--
2.25.1