diff options
| author | Onur Özkan <[email protected]> | 2025-07-08 07:58:50 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-07-14 21:53:35 +0000 |
| commit | b6f885060e8e24f1a1a9205ba41a0524964e8c30 (patch) | |
| tree | 8537883f621f26eaefcd339aa76cc5e7069f9131 /rust/helpers/helpers.c | |
| parent | rust: helpers: sort includes alphabetically (diff) | |
| download | kernel-b6f885060e8e24f1a1a9205ba41a0524964e8c30.tar.gz kernel-b6f885060e8e24f1a1a9205ba41a0524964e8c30.zip | |
rust: rbtree: simplify finding `current` in `remove_current`
The previous version used a verbose `match` to get
`current`, which may be slightly confusing at first
glance.
This change makes it shorter and more clearly expresses
the intent: prefer `next` if available, otherwise fall
back to `prev`.
Signed-off-by: Onur Özkan <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Alexandre Courbot <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
