diff options
author | David Teigland <teigland@redhat.com> | 2017-10-25 13:55:22 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-11-10 10:55:32 -0600 |
commit | 633726642940cb130d2c15b26f7990186f53626a (patch) | |
tree | 73c77c26e986f26b5f5984d0c077be6f8e8e3181 | |
parent | 464d33bfb5be703cff00c77b76a524d51d0cb628 (diff) | |
download | lvm2-633726642940cb130d2c15b26f7990186f53626a.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 eeefb89be..ee2c58083 100644 --- a/lib/format_text/format-text.c +++ b/lib/format_text/format-text.c @@ -1334,7 +1334,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 { |