]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove pointless WARN_ON() in cache_save_setup()
authorFilipe Manana <fdmanana@suse.com>
Tue, 10 Feb 2026 14:23:29 +0000 (14:23 +0000)
committerDavid Sterba <dsterba@suse.com>
Thu, 26 Feb 2026 14:03:27 +0000 (15:03 +0100)
commit8ac7fad32b93044f4350ab35f11fee1a61286723
tree74f9c11bb759d2c929d4d07425d26558be437329
parent912db40655684a0a427c8b118dd0c36eb5a61fe4
btrfs: remove pointless WARN_ON() in cache_save_setup()

This WARN_ON(ret) is never executed since the previous if statement makes
us jump into the 'out_put' label when ret is not zero. The existing
transaction abort inside the if statement also gives us a stack trace,
so we don't need to move the WARN_ON(ret) into the if statement either.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c