Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new doesn't return NULL, this can be spared
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 2 Mar 2017 13:36:33 +0000 (14:36 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 2 Mar 2017 13:36:33 +0000 (14:36 +0100)
src/smpi/smpi_topo.cpp

index 6ed191a..57b45a5 100644 (file)
@@ -425,9 +425,7 @@ static int assignnodes(int ndim, int nfactor, int *pfacts, int **pdims)
 
   /* Allocate and initialize the bins */
   int *bins = new int[ndim];
 
   /* Allocate and initialize the bins */
   int *bins = new int[ndim];
-  if (nullptr == bins) {
-    return MPI_ERR_NO_MEM;
-  }
+
   *pdims = bins;
   int *p = bins;
 
   *pdims = bins;
   int *p = bins;