diff options
author | Christoph Hellwig <hch@lst.de> | 2015-06-22 02:44:29 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-06-22 02:44:29 +0300 |
commit | 88ee2df7f2591133731c29d0ee93f3d37691df85 (patch) | |
tree | 780e3d17196d016cd543b4ff20acd83a321afe5d /fs/xfs/libxfs/xfs_ialloc.h | |
parent | fc51c2b5f8ce962355bee19aa58451bb878f0663 (diff) | |
download | linux-88ee2df7f2591133731c29d0ee93f3d37691df85.tar.xz |
xfs: return a void pointer from xfs_buf_offset
This avoids all kinds of unessecary casts in an envrionment like Linux where
we can assume that pointer arithmetics are support on void pointers.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.h b/fs/xfs/libxfs/xfs_ialloc.h index 100007d56449..011be7bd4a81 100644 --- a/fs/xfs/libxfs/xfs_ialloc.h +++ b/fs/xfs/libxfs/xfs_ialloc.h @@ -44,8 +44,7 @@ xfs_icluster_size_fsb( static inline struct xfs_dinode * xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o) { - return (struct xfs_dinode *) - (xfs_buf_offset(b, o << (mp)->m_sb.sb_inodelog)); + return xfs_buf_offset(b, o << (mp)->m_sb.sb_inodelog); } /* |