From 11c7a7bed60a55a670363bec3c07e8d88aa372b7 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 25 Jun 2006 22:39:24 +0000 Subject: Various cleanups I made while going through Erik Hovland's patch submissions, some of which are even from him. :) --- e2fsprogs/ext2fs/ext_attr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'e2fsprogs/ext2fs') diff --git a/e2fsprogs/ext2fs/ext_attr.c b/e2fsprogs/ext2fs/ext_attr.c index 17610a914..ca9f9e20c 100644 --- a/e2fsprogs/ext2fs/ext_attr.c +++ b/e2fsprogs/ext2fs/ext_attr.c @@ -41,16 +41,14 @@ errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block, void *inbuf) char *write_buf; char *buf = NULL; -#if BB_BIG_ENDIAN - if ((fs->flags & EXT2_FLAG_SWAP_BYTES) || - (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE)) { + if (BB_BIG_ENDIAN && ((fs->flags & EXT2_FLAG_SWAP_BYTES) || + (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE))) { retval = ext2fs_get_mem(fs->blocksize, &buf); if (retval) return retval; write_buf = buf; ext2fs_swap_ext_attr(buf, inbuf, fs->blocksize, 1); } else -#endif write_buf = (char *) inbuf; retval = io_channel_write_blk(fs->io, block, 1, write_buf); if (buf) -- cgit v1.2.3