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 Mar 2022 12:13:47 +0000 (13:13 +0100)
commit0292ecf19b353e255be93afa133955c3cd78f784
treee604c38cb1dc8e148c5d7bcd9c258b8b2308b329
parentdb5df254120004471e1c957957ab2f1e612dcbd6
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