summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util.c b/util.c
index 3a4a085..5bac0ec 100644
--- a/util.c
+++ b/util.c
@@ -221,8 +221,10 @@ int load_super(int fd, mdp_super_t *super)
{
if (ioctl(fd, BLKGETSIZE, &size))
return 1;
- else
- dsize = size << 9;
+ else {
+ dsize = size;
+ dsize <<= 9;
+ }
}
if (dsize < MD_RESERVED_SECTORS*2)