From 098c843c50cdcc2e4f4162037e1ff5975624f3e2 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Wed, 25 Oct 2017 13:55:22 -0500 Subject: [PATCH] independent metadata areas: fix bogus code Fix mixing bitwise & and logical && which was always 1 in any case. --- lib/format_text/format-text.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c index 8c12c825d..9538080f0 100644 --- a/lib/format_text/format-text.c +++ b/lib/format_text/format-text.c @@ -1362,7 +1362,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 {