clock: remove cast
Signed-off-by: liaoao <liaoao@xiaomi.com> Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
f2a77bbcea
commit
45d6b5f8f2
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue