From 45d6b5f8f231b1ae73bcb94314d937bb3fbfbbdb Mon Sep 17 00:00:00 2001 From: liaoao Date: Mon, 25 Sep 2023 20:48:53 +0800 Subject: [PATCH] clock: remove cast Signed-off-by: liaoao Signed-off-by: ligd --- sched/clock/clock_gettime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/clock/clock_gettime.c b/sched/clock/clock_gettime.c index 99502db1d6..824fa73fc5 100644 --- a/sched/clock/clock_gettime.c +++ b/sched/clock/clock_gettime.c @@ -121,8 +121,8 @@ int clock_gettime(clockid_t clock_id, struct timespec *tp) flags = spin_lock_irqsave(NULL); - ts.tv_sec += (uint32_t)g_basetime.tv_sec; - ts.tv_nsec += (uint32_t)g_basetime.tv_nsec; + ts.tv_sec += g_basetime.tv_sec; + ts.tv_nsec += g_basetime.tv_nsec; spin_unlock_irqrestore(NULL, flags);