ams: use R_SUCCEED, R_THROW globally

This commit is contained in:
Michael Scire
2022-03-26 00:14:36 -07:00
parent e5b1739f65
commit dd78ede99f
370 changed files with 2107 additions and 2107 deletions

View File

@@ -31,7 +31,7 @@ namespace ams::boot {
u8 power_status;
R_TRY(this->GetPowerStatus(std::addressof(power_status)));
*out = (power_status & 0x02) != 0;
return ResultSuccess();
R_SUCCEED();
}
Result PmicDriver::GetOnOffIrq(u8 *out) {
@@ -53,7 +53,7 @@ namespace ams::boot {
u8 on_off_irq;
R_TRY(this->GetOnOffIrq(std::addressof(on_off_irq)));
*out = (on_off_irq & 0x08) != 0;
return ResultSuccess();
R_SUCCEED();
}
void PmicDriver::ShutdownSystem(bool reboot) {