refactor(libSceIcu): drop redundant errno saves in collator #26931

Closed
sschandra2006 wants to merge 1 commit from upstream-pr/26931 into main
sschandra2006 commented 2026-11-25 02:59:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by sschandra2006 on 2026-11-25T02:59:14Z.


What

refactor(libSceIcu): drop redundant errno saves in collator.

Tested

Verified conventions via python tools/check_conventions.py --base origin/main.

Checklist

  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5484316418 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26931). Originally posted by [sschandra2006](https://github.com/sschandra2006) on 2026-11-25T02:59:14Z. --- ### What refactor(libSceIcu): drop redundant errno saves in collator. ### Tested Verified conventions via `python tools/check_conventions.py --base origin/main`. ### Checklist - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-25 03:50:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T03:50:41Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the points below are optional.

What I ran

Reviewed head dfe1a05dd9d3e71e9b78279f33e5474c8abb3467 using the prepared diff and repo_read.py for the changed source and guest-copy implementation. No commands or tests were run. The description reports that the conventions check passed; I did not run it.

Results

Check Result Note
Source review passed Errno preservation checked
Conventions check not run Reported by author
Tests not run No test run

Negative control

Not run; no test was run that could be changed to verify failure on an incorrect implementation.

Findings

Blocking

None.

Non-blocking

None.

Sources

  • core/libs/prx/libSceIcu/Collator.cpp — reviewed in full; the change removes errno saves around GuestCopyIn_nid_no_patch and GuestCopyOut_nid_no_patch.
  • core/libs/prx/libc/src/General.cpp — reviewed the relevant implementations. CopyGuestBytes and GuestCopyOut_nid_no_patch use RestoreErrno, confirming the removed saves are redundant for these calls.

Not verified

  • No tests or convention checks were run; the convention-check result is author-reported.
  • manifest.json lists one changed file, and its full text was read. files.json was not available through the reader, so excluded files are not verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6051596787 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26931#pullrequestreview-6051596787). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T03:50:41Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the points below are optional. ## What I ran Reviewed head `dfe1a05dd9d3e71e9b78279f33e5474c8abb3467` using the prepared diff and `repo_read.py` for the changed source and guest-copy implementation. No commands or tests were run. The description reports that the conventions check passed; I did not run it. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Errno preservation checked | | Conventions check | not run | Reported by author | | Tests | not run | No test run | ## Negative control Not run; no test was run that could be changed to verify failure on an incorrect implementation. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - `core/libs/prx/libSceIcu/Collator.cpp` — reviewed in full; the change removes errno saves around `GuestCopyIn_nid_no_patch` and `GuestCopyOut_nid_no_patch`. - `core/libs/prx/libc/src/General.cpp` — reviewed the relevant implementations. `CopyGuestBytes` and `GuestCopyOut_nid_no_patch` use `RestoreErrno`, confirming the removed saves are redundant for these calls. ## Not verified - No tests or convention checks were run; the convention-check result is author-reported. - `manifest.json` lists one changed file, and its full text was read. `files.json` was not available through the reader, so excluded files are not verified. ## To get this to a good state Nothing is required.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!26931
No description provided.