From 0892566ac47457f939629ad3f5fcbf785d75e105 Mon Sep 17 00:00:00 2001 From: Fei Jiang Date: Thu, 14 Mar 2019 16:56:19 +0800 Subject: [PATCH] Fix a klocwork scan issue Signed-off-by: Fei Jiang --- gles/gles_cs_executor_conv.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gles/gles_cs_executor_conv.cpp b/gles/gles_cs_executor_conv.cpp index 42d68b7..1287ebe 100644 --- a/gles/gles_cs_executor_conv.cpp +++ b/gles/gles_cs_executor_conv.cpp @@ -671,9 +671,11 @@ bool convolveTimed(ConvParam& convParam, long& elapsedTime, bool syncPerIter) { - bool res; long t; - + bool res = true; + + if (iter < 1) + return false; // warm up run if (!convolve(convParam, shaderConfig, progMgr)) return false;