x86 ide: Remove unlock in IDE_Identify when failing to select the drive.

This commit is contained in:
Ali Mashtizadeh 2023-08-27 16:57:38 -04:00
parent 0f2f6df2bf
commit 562cfeec44

View File

@ -195,7 +195,6 @@ IDE_Identify(IDE *ide, int drive)
status = IDEWaitForBusy(ide, true);
if ((status & IDE_STATUS_ERR) != 0) {
Spinlock_Unlock(&ide->lock);
Log(ide, "Error selecting drive %d\n", drive);
return;
}