diff options
author | I Hsin Cheng <richard120310@gmail.com> | 2025-03-10 10:38:52 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-05-22 13:00:37 +0300 |
commit | 28669b2f37e9b7e98b62d0be2e10a5bf31c2b16f (patch) | |
tree | 2712d4f7f37b606850a81f0b9307ccfd7164226f /scripts/lib/kdoc/kdoc_output.py | |
parent | 249c3a0e53acefc2b06d3b3e1fc28fb2081f878d (diff) | |
download | linux-28669b2f37e9b7e98b62d0be2e10a5bf31c2b16f.tar.xz |
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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions