]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: remove possibly_osf_label variable that is only assigned
authorFrancesco Cosoleto <cosoleto@gmail.com>
Thu, 15 Dec 2011 19:02:38 +0000 (20:02 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 16 Dec 2011 13:03:59 +0000 (14:03 +0100)
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
fdisk/fdisk.c

index a6de6e2757a907c3b504e6b07f7ed11de9509e7c..a23f45ee906e1814ccfbda3b7e48bfb29496cd96 100644 (file)
@@ -292,8 +292,6 @@ int has_topology;
 
 enum labeltype disklabel = DOS_LABEL;  /* Current disklabel */
 
-int    possibly_osf_label = 0;
-
 jmp_buf listingbuf;
 
 static void __attribute__ ((__noreturn__)) usage(FILE *out)
@@ -862,7 +860,6 @@ create_doslabel(void) {
        sun_nolabel();  /* otherwise always recognised as sun */
        sgi_nolabel();  /* otherwise always recognised as sgi */
        disklabel = DOS_LABEL;
-       possibly_osf_label = 0;
        partitions = 4;
 
        /* Zero out the MBR buffer */
@@ -1155,7 +1152,6 @@ get_boot(enum action what) {
                return 0;
 
        if (check_osf_label()) {
-               possibly_osf_label = 1;
                if (!valid_part_table_flag(MBRbuffer)) {
                        disklabel = OSF_LABEL;
                        return 0;