From: Karel Zak Date: Thu, 11 Mar 2010 00:04:50 +0000 (+0100) Subject: mkswap: don't call blkdev_find_size() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f3c7f5cfd83681c6c2522c4b33fa61b395c2e69;p=util-linux mkswap: don't call blkdev_find_size() .. it's already called by blkdev_get_size(). Signed-off-by: Karel Zak --- diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c index 1c72d07b..c1999375 100644 --- a/disk-utils/mkswap.c +++ b/disk-utils/mkswap.c @@ -337,8 +337,6 @@ get_size(const char *file) { } if (blkdev_get_size(fd, &size) == 0) size /= pagesize; - else - size = blkdev_find_size(fd) / pagesize; close(fd); return size;