Clean pipeline: one open, one init, no double-init
- Removed open_unlocked() — open() is the only entry - Removed redundant init() call from open_title() - init() called once in open(), handles everything - Each function does one thing: open→init→scan→read
This commit is contained in:
+1
-3
@@ -798,9 +798,7 @@ impl Disc {
|
||||
detail: format!("title index {} out of range (have {})", title_idx, self.titles.len()),
|
||||
})?;
|
||||
|
||||
if !session.is_unlocked() {
|
||||
let _ = session.init();
|
||||
}
|
||||
// init() already called by DriveSession::open(). No re-init needed.
|
||||
|
||||
let speed_cdb = crate::scsi::build_set_cd_speed(0xFFFF);
|
||||
let mut dummy = [0u8; 0];
|
||||
|
||||
Reference in New Issue
Block a user