ams: globally prefer R_RETURN to return for ams::Result

This commit is contained in:
Michael Scire committed 2022-03-26 14:48:33 -07:00
1 parent dd78ede99f
commit bbf22b4c60
325 files changed
+1955 -1993

No files matched your search

@@ -21,7 +21,7 @@ namespace ams::ncm {
namespace {
Result MountContentMetaByRemoteFileSystemProxy(const char *mount_name, const char *path) {
return fs::MountContent(mount_name, path, fs::ContentType_Meta);
R_RETURN(fs::MountContent(mount_name, path, fs::ContentType_Meta));
}
constinit MountContentMetaFunction g_mount_content_meta_func = MountContentMetaByRemoteFileSystemProxy;
@@ -219,7 +219,7 @@ namespace ams::ncm {
R_UNLESS(force_refer_to_base, ncm::ResultInvalidFirmwareVariation());
/* Force a referral to base. */
return ReadMetaInfoListFromBase();
R_RETURN(ReadMetaInfoListFromBase());
}
/* Obtain the variation info. */