mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
linux: Remove redundant SwapPT in linux_getrandom()
This commit is contained in:
parent
c0df0291eb
commit
462907828d
@ -3336,11 +3336,8 @@ static ssize_t linux_getrandom(SysFrm *, void *buf,
|
|||||||
for (size_t i = 0; i < buflen; i++)
|
for (size_t i = 0; i < buflen; i++)
|
||||||
{
|
{
|
||||||
random = Random::rand16();
|
random = Random::rand16();
|
||||||
{
|
|
||||||
Memory::SwapPT swap(pcb->PageTable);
|
|
||||||
((uint8_t *)pBuf)[i] = uint8_t(random & 0xFF);
|
((uint8_t *)pBuf)[i] = uint8_t(random & 0xFF);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return buflen;
|
return buflen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user