public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 28/37] isofs: use get/put_endian helpers
@ 2008-05-29 20:18 Harvey Harrison
  0 siblings, 0 replies; only message in thread
From: Harvey Harrison @ 2008-05-29 20:18 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-arch

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
 fs/isofs/compress.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/isofs/compress.c b/fs/isofs/compress.c
index defb932..4512e4b 100644
--- a/fs/isofs/compress.c
+++ b/fs/isofs/compress.c
@@ -124,7 +124,7 @@ static int zisofs_readpage(struct file *file, struct page *page)
 			brelse(ptrbh[1]);
 		goto eio;
 	}
-	cstart = le32_to_cpu(*(__le32 *)(bh->b_data + (blockptr & bufmask)));
+	cstart = get_le32((__le32 *)(bh->b_data + (blockptr & bufmask)));
 
 	if ( indexblocks == 2 ) {
 		/* We just crossed a block boundary.  Switch to the next block */
@@ -136,7 +136,7 @@ static int zisofs_readpage(struct file *file, struct page *page)
 			goto eio;
 		}
 	}
-	cend = le32_to_cpu(*(__le32 *)(bh->b_data + (blockendptr & bufmask)));
+	cend = get_le32((__le32 *)(bh->b_data + (blockendptr & bufmask)));
 	brelse(bh);
 
 	if (cstart > cend)
-- 
1.5.6.rc0.277.g804cf

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-29 20:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 20:18 [PATCH 28/37] isofs: use get/put_endian helpers Harvey Harrison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox