From 6f3c7f5cfd83681c6c2522c4b33fa61b395c2e69 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 11 Mar 2010 01:04:50 +0100 Subject: [PATCH] mkswap: don't call blkdev_find_size() .. it's already called by blkdev_get_size(). Signed-off-by: Karel Zak --- disk-utils/mkswap.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.39.5