diff options
author | Karel Zak | 2013-06-07 15:34:39 +0200 |
---|---|---|
committer | Karel Zak | 2013-09-16 16:46:58 +0200 |
commit | c88006509601070adc944b67210fa6c8b5d7962a (patch) | |
tree | 85a9eecafcf44324d5576716b761a41b9f80399f /fdisks/fdisksgilabel.c | |
parent | fdisk: (sgi) rewrite sgi_list_table() (diff) | |
download | kernel-qcow2-util-linux-c88006509601070adc944b67210fa6c8b5d7962a.tar.gz kernel-qcow2-util-linux-c88006509601070adc944b67210fa6c8b5d7962a.tar.xz kernel-qcow2-util-linux-c88006509601070adc944b67210fa6c8b5d7962a.zip |
fdisk: (sgi) remove dead code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisksgilabel.c')
-rw-r--r-- | fdisks/fdisksgilabel.c | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/fdisks/fdisksgilabel.c b/fdisks/fdisksgilabel.c index ddeeca996..1c51ee346 100644 --- a/fdisks/fdisksgilabel.c +++ b/fdisks/fdisksgilabel.c @@ -391,8 +391,8 @@ int sgi_get_swappartition(struct fdisk_context *cxt) return be16_to_cpu(sgilabel->swap_part_num); } -static unsigned int -sgi_get_lastblock(struct fdisk_context *cxt) { +static unsigned int sgi_get_lastblock(struct fdisk_context *cxt) +{ return cxt->geom.heads * cxt->geom.sectors * cxt->geom.cylinders; } @@ -511,9 +511,8 @@ static int compare_start(struct fdisk_context *cxt, const void *x, const void *y) { /* - * sort according to start sectors - * and prefers largest partition: - * entry zero is entire disk entry + * sort according to start sectors and prefers largest partition: entry + * zero is entire disk entry */ unsigned int i = *(int *) x; unsigned int j = *(int *) y; @@ -1038,34 +1037,6 @@ static int sgi_create_disklabel(struct fdisk_context *cxt) return 0; } -void sgi_set_ilfact(void) -{ - /* do nothing in the beginning */ -} - -void sgi_set_rspeed(void) -{ - /* do nothing in the beginning */ -} - -void sgi_set_pcylcount(void) -{ - /* do nothing in the beginning */ -} - -void sgi_set_xcyl(void) -{ - /* do nothing in the beginning */ -} - -void sgi_set_ncyl(void) -{ - /* do nothing in the beginning */ -} - -/* _____________________________________________________________ - */ - static struct fdisk_parttype *sgi_get_parttype(struct fdisk_context *cxt, size_t n) { struct fdisk_parttype *t; |