From fd16f73c0e05fc581a8e8bd5dbebd9e4ebd29c8c Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Mon, 13 Aug 2018 15:37:11 +0500 Subject: [PATCH] src/Mayaqua/Tick64.c: reorder guards in order to silence coverity --- src/Mayaqua/Tick64.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Mayaqua/Tick64.c b/src/Mayaqua/Tick64.c index 92f74c0b..9ec568ae 100644 --- a/src/Mayaqua/Tick64.c +++ b/src/Mayaqua/Tick64.c @@ -133,11 +133,10 @@ static EVENT *halt_tick_event = NULL; // Get the high-resolution time UINT64 TickHighres64() { - UINT64 ret = 0; #ifdef OS_WIN32 - ret = (UINT64)(MsGetHiResTimeSpan(MsGetHiResCounter()) * 1000.0f); + return (UINT64)(MsGetHiResTimeSpan(MsGetHiResCounter()) * 1000.0f); #else // OS_WIN32 @@ -145,7 +144,6 @@ UINT64 TickHighres64() #endif // OS_WIN32 - return ret; } // Convert the Tick value to time