Files
linux/rust/kernel
I Hsin Cheng 28669b2f37 rust: list: Use "List::is_empty()" to perform checking when possible
"List::is_empty()" provides a straight forward convention to check
whether a given "List" is empty or not. There're numerous places in the
current implementation still use "self.first.is_null()" to perform the
equivalent check, replace them with "List::is_empty()".

Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
Link: https://lore.kernel.org/r/20250310073853.427954-1-richard120310@gmail.com
Reviewed-by: Benno Lossin <lossin@kernel.org>
[ Rebased dropping the cases that do not apply anymore. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-05-22 12:00:37 +02:00
..
2025-03-10 15:12:17 +01:00
2025-04-29 15:31:07 +02:00
2025-03-16 21:59:19 +01:00
2025-02-22 15:44:19 +01:00
2024-12-20 17:21:04 +01:00
2024-10-08 15:44:36 +02:00
2025-03-16 21:59:19 +01:00
2024-12-20 17:19:26 +01:00
2025-05-20 22:57:27 +02:00
2025-04-29 15:31:07 +02:00
2024-11-04 16:21:44 -05:00