From bd83de2d664eab8ada91dd628f5d6bd9ee28229f Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto Date: Thu, 15 Dec 2011 20:02:38 +0100 Subject: [PATCH] fdisk: remove possibly_osf_label variable that is only assigned Signed-off-by: Francesco Cosoleto --- fdisk/fdisk.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index a6de6e2757..a23f45ee90 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -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; -- 2.47.2