]> granicus.if.org Git - graphviz/commitdiff
Remove dead assignments from SparseMatrix_import_matrix_market
authorAlex Henrie <alexhenrie24@gmail.com>
Mon, 25 Jan 2021 00:39:37 +0000 (17:39 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 31 Jan 2021 00:39:13 +0000 (16:39 -0800)
cmd/tools/matrix_market.c

index 25fc831658bd193eddb763a5ba2cf35e9e036e6a..757a4639d88e0836d2c731cad814c7ee9d37b095 100644 (file)
@@ -138,7 +138,6 @@ SparseMatrix SparseMatrix_import_matrix_market(FILE * f, int format)
                I = REALLOC(I, 2 * sizeof(int) * nz);
                J = REALLOC(J, 2 * sizeof(int) * nz);
                val = REALLOC(val, 2 * sizeof(real) * nz);
-               vp = (void *) val;
                nzold = nz;
                for (i = 0; i < nzold; i++) {
                    assert(I[i] != J[i]);       /* skew symm has no diag */
@@ -174,7 +173,6 @@ SparseMatrix SparseMatrix_import_matrix_market(FILE * f, int format)
                I = REALLOC(I, 2 * sizeof(int) * nz);
                J = REALLOC(J, 2 * sizeof(int) * nz);
                vali = REALLOC(vali, 2 * sizeof(int) * nz);
-               vp = (void *) val;
                nzold = nz;
                for (i = 0; i < nzold; i++) {
                    assert(I[i] != J[i]);       /* skew symm has no diag */
@@ -234,7 +232,6 @@ SparseMatrix SparseMatrix_import_matrix_market(FILE * f, int format)
                I = REALLOC(I, 2 * sizeof(int) * nz);
                J = REALLOC(J, 2 * sizeof(int) * nz);
                val = REALLOC(val, 4 * sizeof(real) * nz);
-               vp = (void *) val;
                nzold = nz;
                for (i = 0; i < nzold; i++) {
                    assert(I[i] != J[i]);       /* skew symm has no diag */
@@ -249,7 +246,6 @@ SparseMatrix SparseMatrix_import_matrix_market(FILE * f, int format)
                I = REALLOC(I, 2 * sizeof(int) * nz);
                J = REALLOC(J, 2 * sizeof(int) * nz);
                val = REALLOC(val, 4 * sizeof(real) * nz);
-               vp = (void *) val;
                nzold = nz;
                for (i = 0; i < nzold; i++) {
                    if (I[i] != J[i]) {