Re: [PATCH v2 2/2] rust: pwm: Simplify to_result call sites and unsafe blocks
From: Michal Wilczynski
Date: Mon Jan 05 2026 - 06:21:53 EST
On 1/2/26 08:51, Kari Argillander wrote:
> Remove unnecessary temporary variables around to_result() calls and move
> trailing semicolons outside unsafe blocks to improve readability and
> produce cleaner rustfmt output.
>
> No functional change intended.
>
> Signed-off-by: Kari Argillander <kari.argillander@xxxxxxxxx>
> ---
> rust/kernel/pwm.rs | 47 ++++++++++++++---------------------------------
> 1 file changed, 14 insertions(+), 33 deletions(-)
>
Hi, the changes look fine to me, they are more idiomatic to Rust.
Acked-by: Michal Wilczynski <m.wilczynski@xxxxxxxxxxx>