diff options
author | Jim Meyering <meyering@redhat.com> | 2009-09-29 21:29:00 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-10-01 12:04:30 +0200 |
commit | f439c4ebf68c77464c53473b939af7b1df9aa275 (patch) | |
tree | f9c1bc380933b0268c5c06062cdaa951fdd1a9f0 /libparted/fs/amiga/apfs.c | |
parent | 562e0007840f06f475b43bb81ffe81b238b627b5 (diff) | |
download | parted-f439c4ebf68c77464c53473b939af7b1df9aa275.tar.gz |
maint: remove dead store code and declarations
* libparted/labels/bsd.c (bsd_partition_set_flag): Remove dead store
and corresponding decl.
* libparted/arch/linux.c (init_ide): Likewise.
(_dm_maptype): Likewise.
(_mount_table_search): Likewise.
* libparted/fs/amiga/asfs.c (_asfs_probe): Likewise.
* libparted/labels/mac.c (mac_alloc_metadata): Likewise.
* libparted/labels/rdb.c (amiga_write): Likewise.
(amiga_write): Again.
* libparted/fs/amiga/apfs.c (_generic_apfs_probe): Likewise.
* libparted/fs/hfs/reloc_plus.c (hfsplus_effect_move_extent): Likewise.
* libparted/fs/hfs/reloc.c (hfs_effect_move_extent): Likewise.
* libparted/labels/dos.c (probe_partition_for_geom): Remove dead
store in "can't happen" case.
Diffstat (limited to 'libparted/fs/amiga/apfs.c')
-rw-r--r-- | libparted/fs/amiga/apfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libparted/fs/amiga/apfs.c b/libparted/fs/amiga/apfs.c index 41df426..0398794 100644 --- a/libparted/fs/amiga/apfs.c +++ b/libparted/fs/amiga/apfs.c @@ -44,19 +44,18 @@ _generic_apfs_probe (PedGeometry* geom, uint32_t kind) uint32_t *block; PedSector root; struct PartitionBlock * part; - uint32_t blocksize = 1, reserved = 2, prealloc = 0; + uint32_t blocksize = 1, reserved = 2; PED_ASSERT (geom != NULL, return NULL); PED_ASSERT (geom->dev != NULL, return NULL); - /* Finds the blocksize, prealloc and reserved values of the partition block */ + /* Finds the blocksize and reserved values of the partition block */ if (!(part = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) { ped_exception_throw(PED_EXCEPTION_ERROR, PED_EXCEPTION_CANCEL, _("%s : Failed to allocate partition block\n"), __func__); goto error_part; } if (amiga_find_part(geom, part) != NULL) { - prealloc = PED_BE32_TO_CPU (part->de_PreAlloc); reserved = PED_BE32_TO_CPU (part->de_Reserved); blocksize = PED_BE32_TO_CPU (part->de_SizeBlock) * PED_BE32_TO_CPU (part->de_SectorPerBlock) / 128; |