Made burn_drive_release() always unlock drive

This commit is contained in:
Mario Danic 2006-08-28 21:10:08 +00:00
parent 07cf385519
commit 08b877cfc9

View File

@ -110,9 +110,9 @@ void burn_drive_release(struct burn_drive *d, int le)
if (d->released) if (d->released)
burn_print(1, "second release on drive!\n"); burn_print(1, "second release on drive!\n");
assert(!d->busy); assert(!d->busy);
d->unlock(d);
if (le) if (le)
d->unlock(d); d->eject(d);
d->eject(d);
d->release(d); d->release(d);