From 443ad050b1d6abb7f0dc904ad7e86840a546d1dc Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Sun, 27 Jan 2008 00:58:01 -0700 Subject: [PATCH] mkswap: -U UUID cleanup suggested by Mike Frysinger Signed-off-by: LaMont Jones --- disk-utils/mkswap.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c index 59385f22..4b1becaf 100644 --- a/disk-utils/mkswap.c +++ b/disk-utils/mkswap.c @@ -567,13 +567,10 @@ main(int argc, char ** argv) { #ifdef HAVE_LIBUUID if(!set_uuid) - { - uuid_generate(uuid_dat); - uuid = uuid_dat; - } else { - uuid_parse(uuid_input, uuid_dat); - uuid = uuid_dat; - } + uuid_generate(uuid_dat); + else + uuid_parse(uuid_input, uuid_dat); + uuid = uuid_dat; #endif init_signature_page(); /* get pagesize */ -- 2.39.5