Revert "add bounds checking for mPartMinors[]"

This reverts commit f3d3ce5e53.
This commit is contained in:
android-merger 2011-07-07 14:54:24 -07:00
parent cf7369a458
commit 1c55ddb758

View file

@ -186,11 +186,6 @@ void DirectVolume::handlePartitionAdded(const char *devpath, NetlinkEvent *evt)
part_num = 1;
}
if (part_num > MAX_PARTITIONS || part_num < 1) {
SLOGW("Invalid 'PARTN' value");
part_num = 1;
}
if (part_num > mDiskNumParts) {
mDiskNumParts = part_num;
}