summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-11-14 12:31:30 -0600
committerDavid Teigland <teigland@redhat.com>2019-11-27 11:13:40 -0600
commit39bd9b111bc6d2bcb56dfc5859e691b9c90db4c0 (patch)
tree20df6b37759169ab64069d49490c4f880383cbd5
parent4485b8edca559e9c45311f2a3b88d03bd3223834 (diff)
downloadlvm2-39bd9b111bc6d2bcb56dfc5859e691b9c90db4c0.tar.gz
Revert "pvck: check result of dev_get_size"
This reverts commit 1f4968289c9c0e2a1e850317ef173df11938b7f3. fixes folded into subsequent pvck commit
-rw-r--r--tools/pvck.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pvck.c b/tools/pvck.c
index c6f6a330d..ab3f7dbac 100644
--- a/tools/pvck.c
+++ b/tools/pvck.c
@@ -1455,8 +1455,7 @@ static int _dump_search(struct cmd_context *cmd,
uint64_t dev_bytes;
uint64_t extra_bytes;
- if (!dev_get_size(dev, &dev_sectors))
- return_ECMD_FAILED;
+ dev_get_size(dev, &dev_sectors);
dev_bytes = dev_sectors * 512;
extra_bytes = dev_bytes % ONE_MB_IN_BYTES;