Re: [PATCH] rust: simplify Result<()> uses

From
Russell King (Oracle) <linux@armlinux.org.uk>
Date
2024-11-17 19:12:43
Also in
linux-block, lkml, rust-for-linux
Reply to
Russell King (Oracle), 2024-11-17
Let's try that again... with Manas' address pasted in _before_ Andrew's
"A" !

On Sun, Nov 17, 2024 at 06:56:31PM +0000, Russell King (Oracle) wrote:
On Sun, Nov 17, 2024 at 07:25:48PM +0100, Andrew Lunn wrote:
quoted
On Sun, Nov 17, 2024 at 08:41:47PM +0530, Manas via B4 Relay wrote:
quoted
From: Manas <redacted>

This patch replaces `Result<()>` with `Result`.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1128
Signed-off-by: Manas <redacted>
---
 drivers/net/phy/qt2025.rs        | 2 +-
 rust/kernel/block/mq/gen_disk.rs | 2 +-
 rust/kernel/uaccess.rs           | 2 +-
 rust/macros/lib.rs               | 6 +++---
Please split these patches up per subsystem, and submit them
individually to the appropriate subsystems.
In addition, it would be good if the commit stated the rationale for
the change, rather than what the change is (which we can see from the
patch itself.)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Thread (11 messages) 11 messages, 5 authors, last reply 2024-11-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help