summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-05-16 20:09:57 +0200
committerJes Sorensen <jsorensen@fb.com>2017-05-16 20:09:57 +0200
commitd16a749444251c12689fa93d398149025a9c2398 (patch)
tree8a818cc964b203fbd611891ad9f91d3ab50d5510 /super0.c
parentmdadm: Fix '==' broken formatting (diff)
downloadmdadm-d16a749444251c12689fa93d398149025a9c2398.tar.xz
mdadm-d16a749444251c12689fa93d398149025a9c2398.zip
mdadm: Fixup != broken formatting
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/super0.c b/super0.c
index dc13efb6..756cab5e 100644
--- a/super0.c
+++ b/super0.c
@@ -589,8 +589,8 @@ static int update_super0(struct supertype *st, struct mdinfo *info,
* being marked 'sync'
*/
add = (1<<MD_DISK_SYNC);
- if (((sb->disks[d].state & ~mask) | add)
- != (unsigned)info->disk.state) {
+ if (((sb->disks[d].state & ~mask) | add) !=
+ (unsigned)info->disk.state) {
sb->disks[d].state = info->disk.state | wonly |failfast;
rv = 1;
}
@@ -1058,8 +1058,8 @@ static int load_super0(struct supertype *st, int fd, char *devname)
* valid. If it doesn't clear the bit. An --assemble --force
* should get that written out.
*/
- if (read(fd, super+1, ROUND_UP(sizeof(struct bitmap_super_s),4096))
- != ROUND_UP(sizeof(struct bitmap_super_s),4096))
+ if (read(fd, super+1, ROUND_UP(sizeof(struct bitmap_super_s),4096)) !=
+ ROUND_UP(sizeof(struct bitmap_super_s), 4096))
goto no_bitmap;
uuid_from_super0(st, uuid);