btrfs: send: remove redundant ret variable in fs_path_copy
authorMinghao Chi <chi.minghao@zte.com.cn>
Tue, 11 Jan 2022 01:57:16 +0000 (01:57 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Feb 2022 15:36:00 +0000 (16:36 +0100)
commitc04402256ca5b003e485081e3af58674884ae6ab
tree11d8c05063c8fbb3563e27ce7a6a221ec6f02fd6
parent28d776e53e9fcc78aa13ef3c709223242882aa6f
btrfs: send: remove redundant ret variable in fs_path_copy

Return value from fs_path_add_path() directly instead of taking this in
another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c