aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-02-18 15:57:17 +0000
committerDavid Sterba <[email protected]>2025-03-18 19:35:46 +0000
commit31db3e17e2f77e09e01ff50b0acf2f0f4ba4a60b (patch)
tree5d40dc376fb2b6fb81dea9f5d951670904de51f6
parentbtrfs: send: simplify return logic from record_changed_ref() (diff)
downloadkernel-31db3e17e2f77e09e01ff50b0acf2f0f4ba4a60b.tar.gz
kernel-31db3e17e2f77e09e01ff50b0acf2f0f4ba4a60b.zip
btrfs: send: remove unnecessary return variable from process_new_xattr()
There's no need for the 'ret' variable, we can just return directly the result of the call to iterate_dir_item(). Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
-rw-r--r--fs/btrfs/send.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 01b8b570d6ed..e29b5a5ccdd6 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -4950,12 +4950,8 @@ out:
static int process_new_xattr(struct send_ctx *sctx)
{
- int ret = 0;
-
- ret = iterate_dir_item(sctx->send_root, sctx->left_path,
- __process_new_xattr, sctx);
-
- return ret;
+ return iterate_dir_item(sctx->send_root, sctx->left_path,
+ __process_new_xattr, sctx);
}
static int process_deleted_xattr(struct send_ctx *sctx)