[U-Boot] [PATCH] lib/time - remove obsolete code

Alexey Brodkin Alexey.Brodkin at synopsys.com
Mon Dec 9 14:00:56 CET 2013


Seems like this is a reminder of some legacy stuff.
Definitely of no use now.

Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>

Cc: Rob Herring <rob.herring at calxeda.com>
Cc: Mischa Jonker <mjonker at synopsys.com>
---
 lib/time.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/time.c b/lib/time.c
index 80003c3..c47bff7 100644
--- a/lib/time.c
+++ b/lib/time.c
@@ -72,7 +72,6 @@ unsigned long __weak notrace timer_get_us(void)
 static unsigned long long usec_to_tick(unsigned long usec)
 {
 	uint64_t tick = (uint64_t)usec * get_tbclk();
-	usec *= get_tbclk();
 	do_div(tick, 1000000);
 	return tick;
 }
-- 
1.8.4.2



More information about the U-Boot mailing list