Skip to content

Commit ecfc28a

Browse files
Christoph Hellwigdjwong
authored andcommitted
xfs: cleanup xfs_fsb_to_db
This function isn't a macro anymore, so remove various superflous braces, and explicit cast that is done implicitly due to the return value, use a normal if statement instead of trying to squeeze everything together. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent adcb0ca commit ecfc28a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/xfs/xfs_bmap_util.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
xfs_daddr_t
4040
xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb)
4141
{
42-
return (XFS_IS_REALTIME_INODE(ip) ? \
43-
(xfs_daddr_t)XFS_FSB_TO_BB((ip)->i_mount, (fsb)) : \
44-
XFS_FSB_TO_DADDR((ip)->i_mount, (fsb)));
42+
if (XFS_IS_REALTIME_INODE(ip))
43+
return XFS_FSB_TO_BB(ip->i_mount, fsb);
44+
return XFS_FSB_TO_DADDR(ip->i_mount, fsb);
4545
}
4646

4747
/*

0 commit comments

Comments
 (0)