Skip to contentSkip to conversation

btrfs: perform a minor cleanup in btrfs_search_path_in_tree()

PATCH New Burenchev Evgenii 1 participant 1 message Feb 25 Btrfs file system

lore
Share & tools
lore
#0 lore raw

v2 cover btrfs: perform a minor cleanup in btrfs_search_path_in_tree()

Related discussion: https://lore.kernel.org/linux-btrfs/[email protected]

This series splits the original patch into two logical changes as suggested during review.

Patch 1 removes an unused dirid assignment that became dead code after the introduction of btrfs_search_backwards().

Patch 2 performs a small return value cleanup by initializing ret at declaration and removing a redundant assignment.

Changes since v1:
- split into two patches as requested

Evgenii Burenchev (2):
btrfs: remove dead assignment to dirid in btrfs_search_path_in_tree()
btrfs: btrfs: initialize ret at declaration and remove redundant assignment

 fs/btrfs/ioctl.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
Signature · 1 line
2.43.0