mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 11:46:58 -04:00
ams: globally prefer R_RETURN to return for ams::Result
This commit is contained in:
parent
dd78ede99f
commit
bbf22b4c60
325 changed files with 1955 additions and 1993 deletions
|
@ -19,13 +19,13 @@
|
|||
namespace ams::settings::factory {
|
||||
|
||||
Result GetSerialNumber(SerialNumber *out) {
|
||||
const Result result = settings::impl::GetSerialNumber(out);
|
||||
R_TRY_CATCH(settings::impl::GetSerialNumber(out)) {
|
||||
/* It's not a fatal error if the calib filesystem is corrupted. */
|
||||
R_CATCH_RETHROW(settings::ResultCalibrationDataFileSystemCorrupted)
|
||||
R_CATCH_RETHROW(settings::ResultCalibrationDataCrcError)
|
||||
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
||||
|
||||
if (!settings::ResultCalibrationDataFileSystemCorrupted::Includes(result) && !settings::ResultCalibrationDataCrcError::Includes(result)) {
|
||||
R_ABORT_UNLESS(result);
|
||||
}
|
||||
|
||||
return result;
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue