diff options
| author | Nicolás Antinori <nico.antinori.7@gmail.com> | 2026-08-31 19:27:10 -0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-09-17 10:22:00 +0100 |
| commit | d640ecc58a57641022c00b65f8828614cc823602 (patch) | |
| tree | 6322ebc0ead44747eef13af2c7bd10885031cd95 /tools/perf/scripts/python/stackcollapse.py | |
| parent | f344930a163d74c28b99b20f85672c7ffa0f4f14 (diff) | |
| download | linux-next-d640ecc58a57641022c00b65f8828614cc823602.tar.gz linux-next-d640ecc58a57641022c00b65f8828614cc823602.zip | |
rust_binder: simplify Result<()> uses
`kernel::error::Result<T = (), E = Error>` is a type alias for
`core::result::Result<T, E>` with `()` as the default type argument
for T. Explicitly specifying `Result<()>` is redundant.
This change makes all usages of `Result` consistent across the driver.
Link: https://github.com/Rust-for-Linux/linux/issues/1128
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Nicolás Antinori <nico.antinori.7@gmail.com>
Acked-by: Alice Ryhl <aliceryhl@google.com>
Link: https://github.com/rust-lang/rust-clippy/issues/14848
Link: https://github.com/rust-lang/rust-clippy/pull/16123
Link: https://patch.msgid.link/20260831222857.1402608-1-nico.antinori.7@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
