From: Davidlohr Bueso Date: Fri, 27 Apr 2012 11:23:47 +0000 (+0200) Subject: fdisk: remove listing variable X-Git-Tag: v2.22-rc1~462 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=337643ad0f3f3c4b69264c77836fd5c102f91416;p=thirdparty%2Futil-linux.git fdisk: remove listing variable useless global variable. Signed-off-by: Davidlohr Bueso --- diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 886f011bf3..f49efd0b37 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -216,7 +216,6 @@ char *disk_device, /* must be specified */ int fd, /* the disk */ ext_index, /* the prime extended partition */ - listing = 0, /* no aborts for fdisk -l */ nowarn = 0, /* no warnings for fdisk -l/-s */ dos_compatible_flag = 0, /* disabled by default */ dos_changed = 0, @@ -2940,7 +2939,6 @@ main(int argc, char **argv) { nowarn = 1; if (argc > optind) { int k; - listing = 1; for (k = optind; k < argc; k++) print_partition_table_from_option(argv[k]); } else