From 285413b502e1f0f5a016b24c93b871419381c1fc Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 14 Mar 2018 21:00:20 +0100 Subject: [PATCH] cleanup: missing dots and indent --- lib/device/dev-io.c | 4 ++-- lib/metadata/metadata.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index f9422b194..cb3a23415 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -1185,13 +1185,13 @@ const char *dev_read_circular(struct device *dev, uint64_t offset, size_t len, } if (!dev_read_buf(dev, offset, len, reason, buf)) { - log_error("Read from %s failed", dev_name(dev)); + log_error("Read from %s failed.", dev_name(dev)); dm_free(buf); return NULL; } if (!dev_read_buf(dev, offset2, len2, reason, buf + len)) { - log_error("Circular read from %s failed", dev_name(dev)); + log_error("Circular read from %s failed.", dev_name(dev)); dm_free(buf); return NULL; } diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 2e77a552a..b5b97c2f4 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -5623,10 +5623,8 @@ uint32_t vg_lock_newname(struct cmd_context *cmd, const char *vgname) } lvmcache_force_next_label_scan(); lvmcache_label_scan(cmd); - if (!lvmcache_fmt_from_vgname(cmd, vgname, NULL, 0)) { - /* vgname not found after scanning */ - return SUCCESS; - } + if (!lvmcache_fmt_from_vgname(cmd, vgname, NULL, 0)) + return SUCCESS; /* vgname not found after scanning */ } }