]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: simplify read_poll_timeout's example code
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Thu, 23 Oct 2025 06:11:24 +0000 (15:11 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Sun, 26 Oct 2025 16:56:14 +0000 (17:56 +0100)
commitaad1577ab950d1ad46e0dd0915bfbaf9fa9160e4
treed5385d97f0b4938f61ac0a5f6516db6501fa0f9f
parent26c1a20bf7ce76e9afe4030f25bec20e3c63dcf8
rust: simplify read_poll_timeout's example code

- Drop unnecessary Result's '<()>'
- Use '?' instead of match

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/io/poll.rs