DiscIO/VolumeVerifier: Small logic cleanup

Just for ease of reading. No behavioral difference.
This commit is contained in:
JosJuice 2022-08-01 12:15:43 +02:00
parent 40a4eb3893
commit 02e3125f23
1 changed files with 1 additions and 4 deletions

View File

@ -1178,10 +1178,7 @@ void VolumeVerifier::Process()
{
// Don't read beyond the end of the disc.
bytes_to_read -= bytes_over_max;
if (excess_bytes < bytes_over_max)
excess_bytes = 0;
else
excess_bytes -= bytes_over_max;
excess_bytes -= std::min(excess_bytes, bytes_over_max);
content_read = false;
group_read = false;
}