diff options
author | Sun YangKai <sunk67188@gmail.com> | 2025-03-11 11:13:13 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:52 +0300 |
commit | 10de00c7d4e3a12ffbb996e03aefcad0c107981d (patch) | |
tree | dda7af32a572d38638ddf20493f9c8791b9c566d /tools/perf/scripts/python/task-analyzer.py | |
parent | 140ac522de14c1e44dde9ca69a4a1a853953c891 (diff) | |
download | linux-10de00c7d4e3a12ffbb996e03aefcad0c107981d.tar.xz |
btrfs: remove unnecessary btrfs_key local variable in btrfs_search_forward()
The 'found_key' variable was only used to temporarily store the found key
before copying it to 'min_key' at the end of the function when returning
success.
Eliminate the 'found_key' variable, and directly store the key into
'min_key' at the exact loop exit points where ret=0 is set, maintaining
identical functionality.
Signed-off-by: Sun YangKai <sunk67188@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions