mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 09:40:27 +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:
parent
892772c389
commit
31db3e17e2
1 changed files with 2 additions and 6 deletions
|
|
@ -4950,12 +4950,8 @@ static int __process_deleted_xattr(int num, struct btrfs_key *di_key,
|
||||||
|
|
||||||
static int process_new_xattr(struct send_ctx *sctx)
|
static int process_new_xattr(struct send_ctx *sctx)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
return iterate_dir_item(sctx->send_root, sctx->left_path,
|
||||||
|
__process_new_xattr, sctx);
|
||||||
ret = iterate_dir_item(sctx->send_root, sctx->left_path,
|
|
||||||
__process_new_xattr, sctx);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int process_deleted_xattr(struct send_ctx *sctx)
|
static int process_deleted_xattr(struct send_ctx *sctx)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue