mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
linux/time.h: Remove dead code
Since rem = ((long) *tim_p) % SECSPERDAY; the second while cycle while (rem >= SECSPERDAY) is dead. Reported-by: Coverity (CID: 167334) Signed-off-by: Marek Behun <marek.behun@nic.cz>
This commit is contained in:
parent
b16339e254
commit
502af618ec
1 changed files with 0 additions and 5 deletions
|
@ -93,11 +93,6 @@ _DEFUN (localtime_r, (tim_p, res),
|
|||
rem += SECSPERDAY;
|
||||
--days;
|
||||
}
|
||||
while (rem >= SECSPERDAY)
|
||||
{
|
||||
rem -= SECSPERDAY;
|
||||
++days;
|
||||
}
|
||||
|
||||
/* compute hour, min, and sec */
|
||||
res->tm_hour = (int) (rem / SECSPERHOUR);
|
||||
|
|
Loading…
Add table
Reference in a new issue