diff options
author | Alice Ryhl <aliceryhl@google.com> | 2025-02-10 12:53:35 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-03-09 00:35:34 +0300 |
commit | 998c65733b95e8de45cbc10aa8d69652d15fa9d3 (patch) | |
tree | 7630a96deea4a3901ce5d7225bcea3f97edb7734 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 6ad64bf91728502fe8a4d1419c0a3e4fd323f503 (diff) | |
download | linux-998c65733b95e8de45cbc10aa8d69652d15fa9d3.tar.xz |
rust: list: extract common code for insertion
To prepare for a new cursor API that has the ability to insert elements
into the list, extract the common code needed for this operation into a
new `insert_inner` method.
Both `push_back` and `push_front` are updated to use the new function.
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250210-cursor-between-v7-1-36f0215181ed@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions