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:53:57 -0600 |
commit | 83f25c98de5185ec1b70f9f9cc1f7e1121b7cafb (patch) | |
tree | cea684ea57d0a7ef13fd71f082bd11c3a92a9405 | |
parent | 667ce84c56f5882ca51d506b41eeaab404e30b7a (diff) | |
download | lvm2-83f25c98de5185ec1b70f9f9cc1f7e1121b7cafb.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 { |