ams: globally prefer R_RETURN to return for ams::Result
This commit is contained in:
@@ -28,7 +28,7 @@ namespace ams::gpio::driver {
|
||||
}
|
||||
|
||||
Result RegisterDeviceCode(DeviceCode device_code, Pad *pad) {
|
||||
return impl::RegisterDeviceCode(device_code, pad);
|
||||
R_RETURN(impl::RegisterDeviceCode(device_code, pad));
|
||||
}
|
||||
|
||||
bool UnregisterDeviceCode(DeviceCode device_code) {
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace ams::gpio::driver::impl {
|
||||
AMS_ASSERT(driver.GetInterruptControlMutex(pad).IsLockedByCurrentThread());
|
||||
|
||||
/* Set interrupt enabled. */
|
||||
return driver.SetInterruptEnabled(std::addressof(pad), pad.IsInterruptRequiredForDriver());
|
||||
R_RETURN(driver.SetInterruptEnabled(std::addressof(pad), pad.IsInterruptRequiredForDriver()));
|
||||
}
|
||||
|
||||
Result PadSessionImpl::GetInterruptEnabled(bool *out) const {
|
||||
|
||||
Reference in New Issue
Block a user