diff options
author | David Teigland <teigland@redhat.com> | 2017-10-25 13:55:22 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-11-03 11:44:09 -0500 |
commit | b8086463a00560245d4ea029ae2adb2913a35f99 (patch) | |
tree | c163e06f903aabd797052d45962362f9660e5558 | |
parent | 6ea5caeb69f826bd92997541660ac519cea5df75 (diff) | |
download | lvm2-b8086463a00560245d4ea029ae2adb2913a35f99.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 { |