* [PATCH 22/37] cifs: 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, Steve French
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
fs/cifs/inode.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 129dbfe..9a49f6c 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -314,8 +314,8 @@ static int decode_sfu_inode(struct inode *inode, __u64 size,
/* we have enough to decode dev num */
__u64 mjr; /* major */
__u64 mnr; /* minor */
- mjr = le64_to_cpu(*(__le64 *)(pbuf+8));
- mnr = le64_to_cpu(*(__le64 *)(pbuf+16));
+ mjr = get_le64((__le64 *)(pbuf + 8));
+ mnr = get_le64((__le64 *)(pbuf + 16));
inode->i_rdev = MKDEV(mjr, mnr);
}
} else if (memcmp("IntxCHR", pbuf, 8) == 0) {
@@ -325,8 +325,8 @@ static int decode_sfu_inode(struct inode *inode, __u64 size,
/* we have enough to decode dev num */
__u64 mjr; /* major */
__u64 mnr; /* minor */
- mjr = le64_to_cpu(*(__le64 *)(pbuf+8));
- mnr = le64_to_cpu(*(__le64 *)(pbuf+16));
+ mjr = get_le64((__le64 *)(pbuf + 8));
+ mnr = get_le64((__le64 *)(pbuf + 16));
inode->i_rdev = MKDEV(mjr, mnr);
}
} else if (memcmp("IntxLNK", pbuf, 7) == 0) {
--
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:18 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 22/37] cifs: 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