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

@@ -36,7 +36,7 @@ namespace ams::pwm::driver::impl {
/* We're opened. */
guard.Cancel();
return ResultSuccess();
R_SUCCEED();
}
void ChannelSessionImpl::Close() {

View File

@@ -79,7 +79,7 @@ namespace ams::pwm::driver::impl {
Result RegisterDeviceCode(DeviceCode device_code, IPwmDevice *device) {
AMS_ASSERT(device != nullptr);
R_TRY(GetDeviceCodeEntryManager().Add(device_code, device));
return ResultSuccess();
R_SUCCEED();
}
bool UnregisterDeviceCode(DeviceCode device_code) {
@@ -96,7 +96,7 @@ namespace ams::pwm::driver::impl {
/* Set output. */
*out = device->SafeCastToPointer<IPwmDevice>();
return ResultSuccess();
R_SUCCEED();
}
Result FindDeviceByChannelIndex(IPwmDevice **out, int channel) {
@@ -121,7 +121,7 @@ namespace ams::pwm::driver::impl {
/* Check that we found the pad. */
R_UNLESS(found, ddsf::ResultDeviceCodeNotFound());
return ResultSuccess();
R_SUCCEED();
}
}