xfs: simplify if-else condition in xfs_reflink_trim_around_shared
authorZeng Heng <zengheng4@huawei.com>
Sun, 18 Sep 2022 20:50:14 +0000 (06:50 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 18 Sep 2022 20:50:14 +0000 (06:50 +1000)
commita0ebf8c46d64ba96b413784f88af0a4dca95b6bc
tree6f24470af854e3ea141bb5227593e6465977bc08
parentde94a2e151bed6884b4f21aa518a100ac9e83af2
xfs: simplify if-else condition in xfs_reflink_trim_around_shared

"else" is not generally useful after a return,
so remove it for clean code.

There is no logical changes.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_reflink.c