]> sourceware.org Git - lvm2.git/commitdiff
independent metadata areas: fix bogus code
authorDavid Teigland <teigland@redhat.com>
Wed, 25 Oct 2017 18:55:22 +0000 (13:55 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 20 Apr 2018 16:21:41 +0000 (11:21 -0500)
Fix mixing bitwise & and logical && which was
always 1 in any case.

lib/format_text/format-text.c

index 8c12c825d80066dc3e638eff5a6bd65f40611322..9538080f04e37dff5c61b3dfb7bb324819afecfa 100644 (file)
@@ -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 {
This page took 0.033268 seconds and 5 git commands to generate.