diff options
| author | 2025-08-27 00:17:41 +0800 | |
|---|---|---|
| committer | 2025-09-13 17:32:53 -0700 | |
| commit | 3e3f55f8b73fa0e5c4df50f8b6c001f0a1f18adf (patch) | |
| tree | 34f3f2cab1d68544221918a817377e04ae38aaee /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | watchdog: skip checks when panic is in progress (diff) | |
| download | wireguard-linux-3e3f55f8b73fa0e5c4df50f8b6c001f0a1f18adf.tar.xz wireguard-linux-3e3f55f8b73fa0e5c4df50f8b6c001f0a1f18adf.zip | |
btree: simplify merge logic by using btree_last() return value
Previously btree_merge() called btree_last() only to test existence, then
performed an extra btree_lookup() to fetch the value. This patch changes
it to directly use the value returned by btree_last(), avoiding redundant
lookups and simplifying the merge loop.
Link: https://lkml.kernel.org/r/20250826161741.686704-1-409411716@gms.tku.edu.tw
Signed-off-by: Guan-Chun Wu <409411716@gms.tku.edu.tw>
Cc: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
