summaryrefslogtreecommitdiff
path: root/Create.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-09 17:21:27 +1000
committerNeilBrown <neilb@suse.de>2012-07-09 17:21:27 +1000
commit3c463be459e10e6a71b4e7a66db5e5db75cb6a3b (patch)
tree67c2221e6010698fa16394bb40332bd66bdc35d2 /Create.c
parenta93f8c6540892d78ae8886d03434eb0a78175187 (diff)
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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Create.c b/Create.c
index 8bb289ae..f970aca1 100644
--- a/Create.c
+++ b/Create.c
@@ -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