diff options
Diffstat (limited to 'util/flashrom_tester/src/utils.rs')
-rw-r--r-- | util/flashrom_tester/src/utils.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/flashrom_tester/src/utils.rs b/util/flashrom_tester/src/utils.rs index e8fbb531..4e8dd7cc 100644 --- a/util/flashrom_tester/src/utils.rs +++ b/util/flashrom_tester/src/utils.rs @@ -143,14 +143,14 @@ pub fn get_hardware_wp() -> std::result::Result<bool, String> { match wp_s_val { Ok(v) => { if v == 1 { - return Ok(true); + Ok(true) } else if v == 0 { - return Ok(false); + Ok(false) } else { - return Err("Unknown write protect value".into()); + Err("Unknown write protect value".into()) } } - Err(_) => return Err("Cannot parse write protect value".into()), + Err(_) => Err("Cannot parse write protect value".into()), } } |