Skip to content

Commit

Permalink
pool: remove unreachable code
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Jul 14, 2023
1 parent 8f1c1e0 commit 59b0015
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/tools/pmempool/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,21 +171,18 @@ pmempool_dump_func(const char *appname, int argc, char *argv[])
case PMEM_POOL_TYPE_OBJ:
outv_err("%s: PMEMOBJ pool not supported\n", pd.fname);
ret = -1;
goto out;
break;
case PMEM_POOL_TYPE_UNKNOWN:
outv_err("%s: unknown pool type -- '%s'\n", pd.fname,
params.signature);
ret = -1;
goto out;
break;

Check warning on line 179 in src/tools/pmempool/dump.c

View check run for this annotation

Codecov / codecov/patch

src/tools/pmempool/dump.c#L179

Added line #L179 was not covered by tests
default:
outv_err("%s: cannot determine type of pool\n", pd.fname);
ret = -1;
goto out;
break;

Check warning on line 183 in src/tools/pmempool/dump.c

View check run for this annotation

Codecov / codecov/patch

src/tools/pmempool/dump.c#L183

Added line #L183 was not covered by tests
}

if (ret)
outv_err("%s: dumping pool file failed\n", pd.fname);

out:
if (pd.ofh != stdout)
fclose(pd.ofh);
Expand Down

0 comments on commit 59b0015

Please sign in to comment.