diff options
author | NeilBrown <neilb@suse.de> | 2012-07-09 09:21:27 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-07-09 09:21:27 +0200 |
commit | 3c463be459e10e6a71b4e7a66db5e5db75cb6a3b (patch) | |
tree | 67c2221e6010698fa16394bb40332bd66bdc35d2 /Create.c | |
parent | change array_size to be unsigned and use the new MAX_SIZE (diff) | |
download | mdadm-3c463be459e10e6a71b4e7a66db5e5db75cb6a3b.tar.xz mdadm-3c463be459e10e6a71b4e7a66db5e5db75cb6a3b.zip |
Create: Remove unnecessary cast from 'size'.
'size' is already unsigned long long, so no need to cast it.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Create.c')
-rw-r--r-- | Create.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -281,8 +281,7 @@ int Create(struct supertype *st, char *mddev, size &= ~(64ULL-1); if (size && c->verbose > 0) - pr_err("setting size to %lluK\n", - (unsigned long long)size); + pr_err("setting size to %lluK\n", size); } /* now look at the subdevs */ @@ -626,10 +625,10 @@ int Create(struct supertype *st, char *mddev, * .. but convert to sectors. */ int ncopies = ((layout>>8) & 255) * (layout & 255); - bitmapsize = (unsigned long long)size * raiddisks / ncopies * 2; + bitmapsize = size * raiddisks / ncopies * 2; /* printf("bms=%llu as=%d rd=%d nc=%d\n", bitmapsize, size, raiddisks, ncopies);*/ } else - bitmapsize = (unsigned long long)size * 2; + bitmapsize = size * 2; /* There is lots of redundancy in these disk counts, * raid_disks is the most meaningful value |