diff options
author | Anand Jain <[email protected]> | 2024-05-10 15:10:50 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2024-07-11 15:33:21 +0200 |
commit | ba69f42af2a568f30904a11dc257eb892c5e8c0e (patch) | |
tree | 1aa2331f2351ab8cf99908af105ff04c8d042779 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 53d6c0da0a6bb9f945e5b4bc88701e51e172a087 (diff) |
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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions