summaryrefslogtreecommitdiffstats
path: root/tools/vgreduce.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-03-29 20:19:03 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-03-29 20:19:03 +0000
commitf77736cab5bafc49eee76ec1643eb615b8785329 (patch)
treee3e23d89bdd768412312eb2365b019bb9ca164c0 /tools/vgreduce.c
parent2d1175a8953890ee55d66f1bf0d6bebf56939916 (diff)
downloadlvm2-f77736cab5bafc49eee76ec1643eb615b8785329.tar.gz
lvm2-f77736cab5bafc49eee76ec1643eb615b8785329.tar.xz
lvm2-f77736cab5bafc49eee76ec1643eb615b8785329.zip
Remove double braces
Clang gives notice about possible confusion as commonly double bracces are used when some assignment is done inside them.
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r--tools/vgreduce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index 1cabc8de..5697947d 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -287,8 +287,8 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg)
if (mirrored_seg->log_lv) {
dm_list_iterate_items(seg, &mirrored_seg->log_lv->segments) {
/* FIXME: The second test shouldn't be required */
- if ((seg->segtype ==
- get_segtype_from_string(vg->cmd, "error"))) {
+ if (seg->segtype ==
+ get_segtype_from_string(vg->cmd, "error")) {
log_print("The log device for %s/%s has failed.",
vg->name, mirrored_seg->lv->name);
remove_log = 1;