diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2017-10-06 15:04:56 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-16 09:42:51 -0400 |
commit | 502af618ec3d60f3c8b9914e3484f112fb295b6e (patch) | |
tree | 15d965cb8870bfac2fb1c3b086059c116cfd1ed2 | |
parent | b16339e254371b2823f48186889775b90b044f7e (diff) |
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>
-rw-r--r-- | include/linux/time.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index bf12b99d37..b8d298eb4d 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -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); |