mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-17 09:41:09 +02:00
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 <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
892772c389
commit
31db3e17e2
+2
-6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user