]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: rename ret to err in btrfs_recover_relocation()
authorAnand Jain <anand.jain@oracle.com>
Fri, 10 May 2024 07:10:50 +0000 (15:10 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:21 +0000 (15:33 +0200)
commitba69f42af2a568f30904a11dc257eb892c5e8c0e
tree1aa2331f2351ab8cf99908af105ff04c8d042779
parent53d6c0da0a6bb9f945e5b4bc88701e51e172a087
btrfs: rename ret to err in btrfs_recover_relocation()

In the function btrfs_recover_relocation(), currently the variable 'err'
carries the return value and 'ret' holds the intermediary return value.
However, in some lines, we don't need this two-step approach; we can
directly use 'err'. So, optimize them, which requires reinitializing 'err'
to zero at two locations.

This is a preparatory patch to fix the code style by renaming 'err'
to 'ret'.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c