libfdisk: remove ifdef HDIO_GETGEO

We don't use HDIO_GETGEO since e5b5a349.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
Ruediger Meier 2016-02-25 20:29:30 +01:00
parent 7a11addee8
commit d9851e63fb
2 changed files with 1 additions and 4 deletions

View File

@ -968,7 +968,6 @@ static int sgi_create_disklabel(struct fdisk_context *cxt)
assert(cxt->label);
assert(fdisk_is_label(cxt, SGI));
#ifdef HDIO_GETGEO
if (cxt->geom.heads && cxt->geom.sectors) {
fdisk_sector_t llsectors;
@ -990,7 +989,7 @@ static int sgi_create_disklabel(struct fdisk_context *cxt)
"> 33.8 GB."), cxt->dev_path, cxt->geom.cylinders);
}
}
#endif
rc = fdisk_init_firstsector_buffer(cxt, 0, 0);
if (rc)
return rc;

View File

@ -225,7 +225,6 @@ static int sun_create_disklabel(struct fdisk_context *cxt)
sunlabel->vtoc.sanity = cpu_to_be32(SUN_VTOC_SANITY);
sunlabel->vtoc.nparts = cpu_to_be16(SUN_MAXPARTITIONS);
#ifdef HDIO_GETGEO
if (cxt->geom.heads && cxt->geom.sectors) {
fdisk_sector_t llsectors;
@ -246,7 +245,6 @@ static int sun_create_disklabel(struct fdisk_context *cxt)
cxt->dev_path, cxt->geom.cylinders);
}
} else
#endif
ask_geom(cxt);
sunlabel->acyl = cpu_to_be16(0);