[PATCH 10/15] cytune: remove unnecessary type casts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 sys-utils/cytune.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-utils/cytune.c b/sys-utils/cytune.c
index 4f0ddc7..5bb1328 100644
--- a/sys-utils/cytune.c
+++ b/sys-utils/cytune.c
@@ -115,8 +115,8 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
 static inline double dtime(struct timeval *tvpnew, struct timeval *tvpold)
 {
 	double diff;
-	diff = (double)tvpnew->tv_sec - (double)tvpold->tv_sec;
-	diff += ((double)tvpnew->tv_usec - (double)tvpold->tv_usec) / 1000000;
+	diff = (double)(tvpnew->tv_sec - tvpold->tv_sec);
+	diff += (double)(tvpnew->tv_usec - tvpold->tv_usec) / 1000000;
 	return diff;
 }
 
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux