Skip to contentSkip to conversation

isofs: use get/put_endian helpers

PATCH In review Harvey Harrison 1 participant 1 message May 29, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 28/37 isofs: use get/put_endian helpers

---
 fs/isofs/compress.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/isofs/compress.c +2 -2
index defb932..4512e4b 100644
@@ -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)
Signature · 1 line
1.5.6.rc0.277.g804cf