summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-19 04:31:45 +0200
committerNeilBrown <neilb@suse.de>2013-06-19 04:31:45 +0200
commit1011e8344a6b881883af57959cdd9ec7f9084407 (patch)
tree01680ce6a6696a200b534e4c434fe0078b8933d6 /super1.c
parentManage: allow "--stop" on kernel names. (diff)
downloadmdadm-1011e8344a6b881883af57959cdd9ec7f9084407.tar.xz
mdadm-1011e8344a6b881883af57959cdd9ec7f9084407.zip
Remove lots of unnecessary white space.
Now that I am using white-space mode in Emacs I can see all of this, and I don't like it :-) Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/super1.c b/super1.c
index a9ca2169..918357ce 100644
--- a/super1.c
+++ b/super1.c
@@ -411,7 +411,6 @@ static void examine_super1(struct supertype *st, char *homehost)
printf("\n");
}
-
if (calc_sb_1_csum(sb) == sb->sb_csum)
printf(" Checksum : %x - correct\n", __le32_to_cpu(sb->sb_csum));
else
@@ -507,7 +506,6 @@ static void examine_super1(struct supertype *st, char *homehost)
printf("\n");
}
-
static void brief_examine_super1(struct supertype *st, int verbose)
{
struct mdp_superblock_1 *sb = st->sb;
@@ -998,7 +996,6 @@ static void getinfo_super1(struct supertype *st, struct mdinfo *info, char *map)
info->disk.state |= 1 << MD_DISK_REPLACEMENT;
}
-
if (sb->feature_map & __le32_to_cpu(MD_FEATURE_RECOVERY_OFFSET))
info->recovery_start = __le32_to_cpu(sb->recovery_offset);
else
@@ -1470,8 +1467,6 @@ static int store_super1(struct supertype *st, int fd)
return -EINVAL;
}
-
-
if (sb_offset != __le64_to_cpu(sb->super_offset) &&
0 != __le64_to_cpu(sb->super_offset)
) {
@@ -1559,7 +1554,7 @@ static int write_init_super1(struct supertype *st)
sb->events = 0;
refst = dup_super(st);
- if (load_super1(refst, di->fd, NULL)==0) {
+ if (load_super1(refst, di->fd, NULL)==0) {
struct mdp_superblock_1 *refsb = refst->sb;
memcpy(sb->device_uuid, refsb->device_uuid, 16);
@@ -1589,7 +1584,6 @@ static int write_init_super1(struct supertype *st)
goto error_out;
}
-
/*
* Calculate the position of the superblock.
* It is always aligned to a 4K boundary and
@@ -1923,7 +1917,6 @@ static int load_super1(struct supertype *st, int fd, char *devname)
return 0;
}
-
static struct supertype *match_metadata_desc1(char *arg)
{
struct supertype *st = xcalloc(1, sizeof(*st));
@@ -1993,7 +1986,6 @@ static __u64 _avail_size1(struct supertype *st, __u64 devsize,
else
devsize -= 8;
-
if (st->minor_version < 0)
/* not specified, so time to set default */
st->minor_version = 2;
@@ -2069,7 +2061,6 @@ add_internal_bitmap1(struct supertype *st,
bitmap_super_t *bms = (bitmap_super_t*)(((char*)sb) + MAX_SB_SIZE);
int uuid[4];
-
if (__le64_to_cpu(sb->data_size) == 0)
/* Must be creating the array, else data_size would be non-zero */
creating = 1;