Commit 0aaaf10
btrfs: avoid redundant path slot assignment in btrfs_search_forward()
Move path slot assignment before the condition check to prevent
duplicate assignment. Previously, the slot was set both inside and after
the 'slot >= nritems' block with no change in its value, which is
unnecessary.
Signed-off-by: Sun YangKai <sunk67188@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 10de00c commit 0aaaf10
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4667 | 4667 | | |
4668 | 4668 | | |
4669 | 4669 | | |
| 4670 | + | |
4670 | 4671 | | |
4671 | | - | |
4672 | 4672 | | |
4673 | 4673 | | |
4674 | 4674 | | |
| |||
4678 | 4678 | | |
4679 | 4679 | | |
4680 | 4680 | | |
4681 | | - | |
4682 | 4681 | | |
4683 | 4682 | | |
4684 | 4683 | | |
| |||
0 commit comments