From: Filipe Manana Date: Thu, 13 Nov 2025 12:59:19 +0000 (+0000) Subject: btrfs: remove pointless return value update in btrfs_del_items() X-Git-Tag: v6.19-rc1~167^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86d3dc812f1e9aea58fabe8fcd42023f54abcad0;p=thirdparty%2Flinux.git btrfs: remove pointless return value update in btrfs_del_items() The call to btrfs_del_leaf() can only return an error (negative value) or zero (success). If we didn't get an error then 'ret' is zero, so it's pointless to set it to zero again. Reviewed-by: Qu Wenruo Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 614aa4b56571b..e683f961742af 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -4565,7 +4565,6 @@ int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, free_extent_buffer(leaf); if (ret < 0) return ret; - ret = 0; } else { /* if we're still in the path, make sure * we're dirty. Otherwise, one of the