]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: opp: use to_result for error handling
authorOnur Özkan <work@onurozkan.dev>
Thu, 21 Aug 2025 09:16:05 +0000 (12:16 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 26 Aug 2025 05:10:45 +0000 (10:40 +0530)
commit22763c35c635466545c0cea825da01c72becbcea
tree9203c7511dc3563d3459d2e7bcbe4b70ba3ae4c0
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
rust: opp: use to_result for error handling

Simplifies error handling by replacing the manual check
of the return value with the `to_result` helper.

Signed-off-by: Onur Özkan <work@onurozkan.dev>
Reviewed-by: Elle Rhumsaa <elle@weathered-steel.dev>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
rust/kernel/opp.rs