diff options
author | Filipe Manana <fdmanana@suse.com> | 2022-01-20 11:00:11 +0000 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-03-14 13:13:48 +0100 |
commit | 65faced5b9ef67baaab681ffc4df870d51990357 (patch) | |
tree | 6289351568d28d8c248eba096e9ef61095ef2c5c /include/uapi/linux/btrfs.h | |
parent | 0f8ce49821de3e99251d1a6849bfe5f2be1ecbea (diff) |
btrfs: use single variable to track return value at btrfs_log_inode()
At btrfs_log_inode(), we have two variables to track errors and the
return value of the function, named 'ret' and 'err'. In some places we
use 'ret' and if gets a non-zero value we assign its value to 'err'
and then jump to the 'out' label, while in other places we use 'err'
directly without 'ret' as an intermediary. This is inconsistent, error
prone and not necessary. So change that to use only the 'ret' variable,
making this consistent with most functions in btrfs.
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 'include/uapi/linux/btrfs.h')
0 files changed, 0 insertions, 0 deletions