2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

fsp_srv: Remove unnecessary parameter popping in IDirectory's Read()

IDirectory's Read() function doesn't take any input parameters. It only
uses the output parameters that we already provide.
This commit is contained in:
Lioncash 2019-04-10 13:04:05 -04:00
parent fc436bb09b
commit 8676832064

View file

@ -252,10 +252,7 @@ private:
u64 next_entry_index = 0; u64 next_entry_index = 0;
void Read(Kernel::HLERequestContext& ctx) { void Read(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx}; LOG_DEBUG(Service_FS, "called.");
const u64 unk = rp.Pop<u64>();
LOG_DEBUG(Service_FS, "called, unk=0x{:X}", unk);
// Calculate how many entries we can fit in the output buffer // Calculate how many entries we can fit in the output buffer
const u64 count_entries = ctx.GetWriteBufferSize() / sizeof(FileSys::Entry); const u64 count_entries = ctx.GetWriteBufferSize() / sizeof(FileSys::Entry);