Re: [PATCH] rust_binder: simplify Result<()> uses
From: Alice Ryhl
Date: Tue Sep 01 2026 - 03:49:41 EST
On Mon, Aug 31, 2026 at 07:27:10PM -0300, Nicolás Antinori wrote:
> `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@xxxxxxxxxx>
> Signed-off-by: Nicolás Antinori <nico.antinori.7@xxxxxxxxx>
I don't really think this matters, but shrug.
Acked-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>