From: NeilBrown Date: Mon, 9 Jul 2012 07:21:27 +0000 (+1000) Subject: Create: Remove unnecessary cast from 'size'. X-Git-Tag: mdadm-3.3-rc1~264 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c463be459e10e6a71b4e7a66db5e5db75cb6a3b;p=thirdparty%2Fmdadm.git Create: Remove unnecessary cast from 'size'. 'size' is already unsigned long long, so no need to cast it. Signed-off-by: NeilBrown --- 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