power: Idiom fix

This commit is contained in:
Vicki Pfau 2024-04-16 18:43:30 -07:00
parent 30073d006e
commit a182d580fd

View file

@ -143,10 +143,7 @@ pub async fn get_gpu_clocks() -> Result<u32> {
_ => break,
};
match mhz.parse() {
Ok(mhz) => return Ok(mhz),
Err(e) => return Err(e.into()),
}
return Ok(mhz.parse()?);
}
Err(anyhow!("Couldn't find GPU clocks"))
}