]> err.no Git - util-linux/commitdiff
mkswap: -U UUID cleanup
authorLaMont Jones <lamont@debian.org>
Sun, 27 Jan 2008 07:58:01 +0000 (00:58 -0700)
committerLaMont Jones <lamont@debian.org>
Sun, 27 Jan 2008 07:58:01 +0000 (00:58 -0700)
suggested by Mike Frysinger <vapier@gentoo.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
disk-utils/mkswap.c

index 59385f2272952620b1d9b1b1ae836d69c0ebd662..4b1becafbdace898d908ec264018f18af819f5b9 100644 (file)
@@ -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 */