diff options
author | David Teigland <teigland@redhat.com> | 2017-10-25 13:55:22 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-11-02 16:42:22 -0500 |
commit | ed56362ce0e354c0adef58c6107e9970c8320ba5 (patch) | |
tree | c93bfe5bd2b42ff63cf6f8afa95c28a437c1f51f | |
parent | 61357db70db2a202c169db83e6daf11e2986d646 (diff) | |
download | lvm2-ed56362ce0e354c0adef58c6107e9970c8320ba5.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 { |