Commit 0292ecf1 authored by Minghao Chi's avatar Minghao Chi Committed by David Sterba

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: default avatarZeal Robot <zealci@zte.com.cn>
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarCGEL ZTE <cgel.zte@gmail.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent db5df254
...@@ -528,17 +528,12 @@ static int fs_path_add_from_extent_buffer(struct fs_path *p, ...@@ -528,17 +528,12 @@ static int fs_path_add_from_extent_buffer(struct fs_path *p,
static int fs_path_copy(struct fs_path *p, struct fs_path *from) static int fs_path_copy(struct fs_path *p, struct fs_path *from)
{ {
int ret;
p->reversed = from->reversed; p->reversed = from->reversed;
fs_path_reset(p); fs_path_reset(p);
ret = fs_path_add_path(p, from); return fs_path_add_path(p, from);
return ret;
} }
static void fs_path_unreverse(struct fs_path *p) static void fs_path_unreverse(struct fs_path *p)
{ {
char *tmp; char *tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment