diff options
author | David Teigland <teigland@redhat.com> | 2017-10-25 13:55:22 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-11-10 16:11:48 -0600 |
commit | 1abc31c741c6ba76ea37b054044ee35b5c2537d2 (patch) | |
tree | dc5a520a3e87d356d55e37e5625afa7a6750905b | |
parent | fd55b0b6371f0ab656c0acdb5dbd2aba5c4b1a26 (diff) | |
download | lvm2-1abc31c741c6ba76ea37b054044ee35b5c2537d2.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 { |