Fix svace issue (useless branch) 20/288720/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 22 Feb 2023 04:55:23 +0000 (13:55 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 22 Feb 2023 04:55:23 +0000 (13:55 +0900)
Change-Id: I122720a0aaaf74de0a30cd66730275688f03da7d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/imaging/common/image-operations.cpp

index e08b66a..597bfe8 100644 (file)
@@ -748,15 +748,12 @@ void HorizontalSkew(const uint8_t* const srcBufferPtr,
   int32_t i = std::max(static_cast<int32_t>(srcWidth) + offset, -static_cast<int32_t>(dstWidth * row));
   if(i < static_cast<int32_t>(dstWidth))
   {
-    if(row * dstWidth + i >= 0)
-    {
-      // If still in image bounds, put leftovers there
-      const uint32_t dstIndex = pixelSize * (row * dstWidth + i);
+    // If still in image bounds, put leftovers there
+    const uint32_t dstIndex = pixelSize * (row * dstWidth + i);
 
-      for(uint32_t channel = 0u; channel < pixelSize; ++channel)
-      {
-        *(dstBufferPtr + dstIndex + channel) = oldLeft[channel];
-      }
+    for(uint32_t channel = 0u; channel < pixelSize; ++channel)
+    {
+      *(dstBufferPtr + dstIndex + channel) = oldLeft[channel];
     }
 
     // Clear to the right of the skewed line with background