]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8aa212cace7702eef2e510af8b53ea53e9bd27e9
tree6f24470af854e3ea141bb5227593e6465977bc08
parent0db8c76e039e2fcacb3a6d1cb8fc380b16a0c75e
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