Coverity #1321058, #1321094, #1321156, #1354293 fixed
[scilab.git] / scilab / modules / matio / src / c / CreateDoubleVariable.c
index c8eb479..7f4acea 100644 (file)
@@ -74,16 +74,8 @@ int CreateDoubleVariable(void *pvApiCtx, int iVar, matvar_t *matVariable, int *
             piDims[i] = (int)matVariable->dims[i];
         }
 
-        if (matVariable->isComplex == 0)
-        {
-            CreateHyperMatrixVariable(pvApiCtx, iVar, matVariable->class_type, &matVariable->isComplex, &matVariable->rank,
-                                      piDims, matVariable, parent, item_position);
-        }
-        else
-        {
-            CreateHyperMatrixVariable(pvApiCtx, iVar, matVariable->class_type, &matVariable->isComplex, &matVariable->rank,
-                                      piDims, matVariable, parent, item_position);
-        }
+        CreateHyperMatrixVariable(pvApiCtx, iVar, matVariable->class_type, &matVariable->isComplex, &matVariable->rank,
+                                  piDims, matVariable, parent, item_position);
 
         FREE(piDims);
     }