From e2860cec59853ba5552f4dc39e55b341f362e54e Mon Sep 17 00:00:00 2001 From: Christina Tempelaar-Lietz Date: Thu, 3 Oct 2019 20:29:14 -0700 Subject: [PATCH] Remove unreached 'return'. Signed-off-by: Christina Tempelaar-Lietz --- OpenEXR/IlmImfTest/compareDwa.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OpenEXR/IlmImfTest/compareDwa.cpp b/OpenEXR/IlmImfTest/compareDwa.cpp index 9cc637fb6..ac9fa4218 100644 --- a/OpenEXR/IlmImfTest/compareDwa.cpp +++ b/OpenEXR/IlmImfTest/compareDwa.cpp @@ -64,11 +64,9 @@ toNonlinear(half linear) if ( fabs( (float)linear ) <= 1.0f) { return (half)(sign * pow(fabs((float)linear), 1.f/2.2f)); - } else { - return (half)(sign * ( log(fabs((float)linear)) / log(logBase) + 1.0f) ); - } + } - return (half)0.0f; + return (half)(sign * ( log(fabs((float)linear)) / log(logBase) + 1.0f) ); }