Skip to content

Commit

Permalink
Minor change, removed unneeded size check
Browse files Browse the repository at this point in the history
  • Loading branch information
istvan-v committed Oct 20, 2016
1 parent 53d788d commit e0e58ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@ namespace Ep128 {
uint32_t lbaSize =
(uint32_t(buf[52]) << 24) | (uint32_t(buf[53]) << 16)
| (uint32_t(buf[54]) << 8) | uint32_t(buf[55]);
if ((lbaSize & 511U) ||
lbaSize < 0x000A0000U || lbaSize > (nSectors << 9)) {
if ((lbaSize & 511U) || lbaSize > (nSectors << 9))
break;
}
lbaSize = lbaSize >> 9;
// check disk geometry
c = (uint16_t(buf[56]) << 8) | uint16_t(buf[57]);
Expand Down

0 comments on commit e0e58ec

Please sign in to comment.