]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: Improve error handling in xfs_mru_cache_create()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 10 Jun 2025 12:50:07 +0000 (14:50 +0200)
committerCarlos Maiolino <cem@kernel.org>
Mon, 16 Jun 2025 08:07:21 +0000 (10:07 +0200)
commit19fa6e493a933c095f164230d3393d504216e052
tree84885761cde2102a29eda668bdf86a6bc47ad30e
parent0989dfa61f438150c4f1110604ba0787856fe8b0
xfs: Improve error handling in xfs_mru_cache_create()

Simplify error handling in this function implementation.

* Delete unnecessary pointer checks and variable assignments.

* Omit a redundant function call.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_mru_cache.c