We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d47f6 commit a3f143cCopy full SHA for a3f143c
rust/kernel/block/mq/gen_disk.rs
@@ -45,7 +45,7 @@ impl GenDiskBuilder {
45
46
/// Validate block size by verifying that it is between 512 and `PAGE_SIZE`,
47
/// and that it is a power of two.
48
- fn validate_block_size(size: u32) -> Result<()> {
+ fn validate_block_size(size: u32) -> Result {
49
if !(512..=bindings::PAGE_SIZE as u32).contains(&size) || !size.is_power_of_two() {
50
Err(error::code::EINVAL)
51
} else {
0 commit comments