summaryrefslogtreecommitdiff
path: root/device_mapper
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2022-12-20 13:52:31 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2022-12-20 15:04:36 +0100
commitb6b1c19365d20d926d8aa39bf591731a7f9bb75a (patch)
tree13a0610469c896e35d67a7bf01c9207d13f64229 /device_mapper
parent4baef0f93f608403b6f2db445e7bf1e80f8f3ee6 (diff)
downloadlvm2-b6b1c19365d20d926d8aa39bf591731a7f9bb75a.tar.gz
vdo: fix reader error path
Nothing to be closed on this error path.
Diffstat (limited to 'device_mapper')
-rw-r--r--device_mapper/vdo/vdo_reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device_mapper/vdo/vdo_reader.c b/device_mapper/vdo/vdo_reader.c
index 4f91f8011..3596afbd3 100644
--- a/device_mapper/vdo/vdo_reader.c
+++ b/device_mapper/vdo/vdo_reader.c
@@ -189,7 +189,7 @@ bool dm_vdo_parse_logical_size(const char *vdo_path, uint64_t *logical_blocks)
*logical_blocks = 0;
if ((fh = open(vdo_path, O_RDONLY)) == -1) {
log_sys_debug("Failed to open VDO backend %s.", vdo_path);
- goto err;
+ return false;
}
if (ioctl(fh, BLKGETSIZE64, &size) == -1) {