diff options
author | Jes Sorensen <jsorensen@fb.com> | 2017-05-16 19:59:43 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-05-16 19:59:43 +0200 |
commit | d7be7d87366a7f9b190bc4e41ea06f7c9984028e (patch) | |
tree | 48d43094e34376fa3dc7eab21546a10bc1119722 /super-ddf.c | |
parent | mdadm: Fixup a large number of bad formatting of logical operators (diff) | |
download | mdadm-d7be7d87366a7f9b190bc4e41ea06f7c9984028e.tar.xz mdadm-d7be7d87366a7f9b190bc4e41ea06f7c9984028e.zip |
mdadm: Fixup more broken logical operator formatting
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/super-ddf.c b/super-ddf.c index 769eded3..4da7c09c 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -932,14 +932,13 @@ static int load_ddf_headers(int fd, struct ddf_super *super, char *devname) if (load_ddf_header(fd, be64_to_cpu(super->anchor.secondary_lba), dsize >> 9, 2, &super->secondary, &super->anchor)) { - if (super->active == NULL - || (be32_to_cpu(super->primary.seq) - < be32_to_cpu(super->secondary.seq) && - !super->secondary.openflag) - || (be32_to_cpu(super->primary.seq) - == be32_to_cpu(super->secondary.seq) && - super->primary.openflag && !super->secondary.openflag) - ) + if (super->active == NULL || + (be32_to_cpu(super->primary.seq) + < be32_to_cpu(super->secondary.seq) && + !super->secondary.openflag) || + (be32_to_cpu(super->primary.seq) == + be32_to_cpu(super->secondary.seq) && + super->primary.openflag && !super->secondary.openflag)) super->active = &super->secondary; } else if (devname && be64_to_cpu(super->anchor.secondary_lba) != ~(__u64)0) |