diff options
author | David Teigland <teigland@redhat.com> | 2017-10-25 13:55:22 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-10-31 14:58:00 -0500 |
commit | 5a54c3b5dbecfd038a444735ae946d6d4fa6c753 (patch) | |
tree | 57784d25034210b11bd60458116d2e1c50c414ed | |
parent | 439962f1f39a6035a9ebb266999d7ff1d08062d0 (diff) | |
download | lvm2-5a54c3b5dbecfd038a444735ae946d6d4fa6c753.tar.gz |
independent metadata areas: fix bogus code
Fix mixing bitwise & and logical && which was
always 1 in any case.
-rw-r--r-- | lib/format_text/format-text.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c index e03f3687a..f726621a1 100644 --- a/lib/format_text/format-text.c +++ b/lib/format_text/format-text.c @@ -1314,7 +1314,9 @@ static int _scan_raw(const struct format_type *fmt, const char *vgname __attribu static int _text_scan(const struct format_type *fmt, const char *vgname) { - return (_scan_file(fmt, vgname) & _scan_raw(fmt, vgname)); + _scan_file(fmt, vgname); + _scan_raw(fmt, vgname); + return 1; } struct _write_single_mda_baton { |