]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Create: Remove unnecessary cast from 'size'.
authorNeilBrown <neilb@suse.de>
Mon, 9 Jul 2012 07:21:27 +0000 (17:21 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 9 Jul 2012 07:21:27 +0000 (17:21 +1000)
'size' is already unsigned long long, so no need to cast it.

Signed-off-by: NeilBrown <neilb@suse.de>
Create.c

index 8bb289ae128da0950bae9011bbe9301d291ad8f1..f970aca196338dba72cc28758968e9c3decf41e0 100644 (file)
--- 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