aboutsummaryrefslogtreecommitdiffstats
path: root/fs/qnx4/dir.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@mail.ru>2005-06-24 16:52:52 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-24 17:14:24 -0400
commit75043cb5b386e5a01fd03b88f647dd992de02f97 (patch)
tree334fd390af972a42407362cce4c2aacc7ac92b3e /fs/qnx4/dir.c
parent793ae77469121227cd910c4b99f24be1de34bcca (diff)
[PATCH] fs/qnx4/*: fix sparse warnings
This patch fixes sparse warnings in the qnx4fs (and might even make qnx4fs work on big-endian boxes) Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Anders Larsen <al@alarsen.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/qnx4/dir.c')
-rw-r--r--fs/qnx4/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/qnx4/dir.c b/fs/qnx4/dir.c
index cd66147cca04..7a8f5595c26f 100644
--- a/fs/qnx4/dir.c
+++ b/fs/qnx4/dir.c
@@ -61,7 +61,7 @@ static int qnx4_readdir(struct file *filp, void *dirent, filldir_t filldir)
61 ino = blknum * QNX4_INODES_PER_BLOCK + ix - 1; 61 ino = blknum * QNX4_INODES_PER_BLOCK + ix - 1;
62 else { 62 else {
63 le = (struct qnx4_link_info*)de; 63 le = (struct qnx4_link_info*)de;
64 ino = ( le->dl_inode_blk - 1 ) * 64 ino = ( le32_to_cpu(le->dl_inode_blk) - 1 ) *
65 QNX4_INODES_PER_BLOCK + 65 QNX4_INODES_PER_BLOCK +
66 le->dl_inode_ndx; 66 le->dl_inode_ndx;
67 } 67 }