aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/fs.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-01-16 16:00:16 +0000
committerDavid Sterba <dsterba@suse.com>2024-05-07 21:31:04 +0200
commited48adf83e09041d7ec3ec9ef256f1b3f660c52d (patch)
tree203d090305555a4c526c2590aca64b6c1e8f9f5b /fs/btrfs/fs.h
parent071533da5f2e7623089e69252bd949610d6c8194 (diff)
btrfs: simplify add_extent_mapping() by removing pointless label
The add_extent_mapping() function is short and trivial, there's no need to have a label for a quick exit in case of an error, even because there's no error handling needed, we just need to return the error. So remove that label and return directly. Also while at it remove the redundant initialization of 'ret', as that may help avoid some warnings with clang tools such as the one reported/fixed by commit 966de47ff0c9 ("btrfs: remove redundant initialization of variables in log_new_ancestors"). Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Josef Bacik <josef@toxicpanda.com> 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/fs.h')
0 files changed, 0 insertions, 0 deletions