From efc16f0ab4d5a8b1dbcab0754cac0729683508da Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Thu, 24 Oct 2024 08:51:57 +0200 Subject: [PATCH] Clean up code --- cpp/devices/tape.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/devices/tape.cpp b/cpp/devices/tape.cpp index 47cf011b..e1ea8ef9 100644 --- a/cpp/devices/tape.cpp +++ b/cpp/devices/tape.cpp @@ -466,14 +466,14 @@ void Tape::Locate(bool locate16) const uint64_t block = locate16 ? GetCdbInt64(4) : GetCdbInt32(3); - position = 0; - block_location = 0; - if (tar_mode) { position = block * GetBlockSize(); block_location = block; } else { + position = 0; + block_location = 0; + // BT if (GetCdbByte(1) & 0x01) { position = GetCdbInt32(2);