ams: globally prefer R_RETURN to return for ams::Result
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user