[Piglit] [PATCH] util: Remove duplicate assignment.

Vinson Lee vlee at freedesktop.org
Fri Nov 4 22:17:02 UTC 2016


Fix Coverity evaluation order violation defect.

CID: 1374296
Fixes: e0048f4940f7 ("util: Add piglit_delay_ns() api")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/util/piglit-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index 6becfa664490..6b34c46f8549 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -619,7 +619,7 @@ piglit_time_get_nano(void)
 int64_t
 piglit_delay_ns(int64_t time_ns)
 {
-	int64_t start = start = piglit_time_get_nano();
+	int64_t start = piglit_time_get_nano();
 	int64_t end;
 
 #ifdef __linux__
-- 
2.7.4



More information about the Piglit mailing list