diff options
| author | Colin Ian King <[email protected]> | 2023-06-22 08:54:30 +0100 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-08-21 14:52:12 +0200 |
| commit | 966de47ff0c9e64d74e1719e4480b7c34f6190fa (patch) | |
| tree | 3cdba9df42468af28b2b671910616d4e9cd373c2 /tools/perf/scripts/python/task-analyzer.py | |
| parent | cf4ac2b9049be459dfbaddbeb9322366f1ac2dc6 (diff) | |
btrfs: remove redundant initialization of variables in log_new_ancestors
The variables leaf and slot are initialized when declared but the values
assigned to them are never read as they are being re-assigned later on.
The initializations are redundant and can be removed. Cleans up clang
scan build warnings:
fs/btrfs/tree-log.c:6797:25: warning: Value stored to 'leaf' during its
initialization is never read [deadcode.DeadStores]
fs/btrfs/tree-log.c:6798:7: warning: Value stored to 'slot' during its
initialization is never read [deadcode.DeadStores]
It's been there since b8aa330d2acb ("Btrfs: improve performance on fsync
of files with multiple hardlinks") without any usage so it's safe to be
removed.
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions