From: Jens Axboe Date: Tue, 27 Mar 2007 08:03:09 +0000 (+0200) Subject: Remove redundant double casts in time functions X-Git-Tag: fio-1.15~30 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=64b18e125219430fbfe69e61642dbcaa1861434e;p=fio.git Remove redundant double casts in time functions Signed-off-by: Jens Axboe --- diff --git a/time.c b/time.c index 108c0fca..c6a62878 100644 --- a/time.c +++ b/time.c @@ -17,7 +17,7 @@ unsigned long utime_since(struct timeval *s, struct timeval *e) usec += 1000000; } - sec *= (double) 1000000; + sec *= 1000000UL; return sec + usec; } @@ -41,8 +41,8 @@ unsigned long mtime_since(struct timeval *s, struct timeval *e) usec += 1000000; } - sec *= (double) 1000; - usec /= (double) 1000; + sec *= 1000UL; + usec /= 1000UL; return sec + usec; }