diff options
author | 2025-02-05 12:33:15 +0000 | |
---|---|---|
committer | 2025-03-18 20:35:45 +0100 | |
commit | 78843d7e4e8b2cd85754c121d3f636196c01045d (patch) | |
tree | 17c49eecbf3df92a926cd45a805ad630817062e2 /fs/btrfs/send.c | |
parent | btrfs: send: implement fs_path_add_path() using fs_path_add() (diff) | |
download | linux-rng-78843d7e4e8b2cd85754c121d3f636196c01045d.tar.xz linux-rng-78843d7e4e8b2cd85754c121d3f636196c01045d.zip |
btrfs: send: simplify return logic from fs_path_add_from_extent_buffer()
There is no need to have an 'out' label and jump into it since there are
no resource cleanups to perform (release locks, free memory, etc), so
make this simpler by removing the label and goto and instead return
directly.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 7a75f1d963f9..b9de1ab94367 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -580,12 +580,11 @@ static int fs_path_add_from_extent_buffer(struct fs_path *p, ret = fs_path_prepare_for_add(p, len, &prepared); if (ret < 0) - goto out; + return ret; read_extent_buffer(eb, prepared, off, len); -out: - return ret; + return 0; } static int fs_path_copy(struct fs_path *p, struct fs_path *from) |