clock: remove cast

Signed-off-by: liaoao <liaoao@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
liaoao 2023-09-25 20:48:53 +08:00 committed by Xiang Xiao
parent f2a77bbcea
commit 45d6b5f8f2
1 changed files with 2 additions and 2 deletions

View File

@ -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);