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>
This commit is contained in:
parent
db5df25412
commit
0292ecf19b
@ -528,17 +528,12 @@ out:
|
|||||||
|
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user