diff options
author | Rob Landley | 2006-05-03 21:58:45 +0000 |
---|---|---|
committer | Rob Landley | 2006-05-03 21:58:45 +0000 |
commit | 7c94bed2345008b4b62014a846488319a7af0727 (patch) | |
tree | 4345ba7255410654b6c8c4d7f51122643f6d9584 /e2fsprogs/ext2fs/closefs.c | |
parent | db2ab89b7c66c97e7a849a4a25baca10de4576dc (diff) | |
download | busybox-7c94bed2345008b4b62014a846488319a7af0727.zip busybox-7c94bed2345008b4b62014a846488319a7af0727.tar.gz |
Big dead code elimination pass from Garrett.
Diffstat (limited to 'e2fsprogs/ext2fs/closefs.c')
-rw-r--r-- | e2fsprogs/ext2fs/closefs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/e2fsprogs/ext2fs/closefs.c b/e2fsprogs/ext2fs/closefs.c index da0016b..481d1c5 100644 --- a/e2fsprogs/ext2fs/closefs.c +++ b/e2fsprogs/ext2fs/closefs.c @@ -191,7 +191,7 @@ static errcode_t write_backup_super(ext2_filsys fs, dgrp_t group, if (sgrp > ((1 << 16) - 1)) sgrp = (1 << 16) - 1; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if (fs->flags & EXT2_FLAG_SWAP_BYTES) super_shadow->s_block_group_nr = ext2fs_swab16(sgrp); else @@ -213,7 +213,7 @@ errcode_t ext2fs_flush(ext2_filsys fs) struct ext2_group_desc *group_shadow = 0; char *group_ptr; int old_desc_blocks; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN dgrp_t j; struct ext2_group_desc *s, *t; #endif @@ -224,7 +224,7 @@ errcode_t ext2fs_flush(ext2_filsys fs) fs->super->s_wtime = time(NULL); fs->super->s_block_group_nr = 0; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if (fs->flags & EXT2_FLAG_SWAP_BYTES) { retval = EXT2_ET_NO_MEMORY; retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &super_shadow); @@ -267,7 +267,7 @@ errcode_t ext2fs_flush(ext2_filsys fs) * we write out the backup superblocks.) */ fs->super->s_state &= ~EXT2_VALID_FS; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if (fs->flags & EXT2_FLAG_SWAP_BYTES) { *super_shadow = *fs->super; ext2fs_swap_super(super_shadow); @@ -316,7 +316,7 @@ errcode_t ext2fs_flush(ext2_filsys fs) } fs->super->s_block_group_nr = 0; fs->super->s_state = fs_state; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if (fs->flags & EXT2_FLAG_SWAP_BYTES) { *super_shadow = *fs->super; ext2fs_swap_super(super_shadow); |