From 112e89b0e0f26336defed7cb1d56ca6da545bd27 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 9ae0f530..423effe9 100644 --- a/cpp/devices/tape.cpp +++ b/cpp/devices/tape.cpp @@ -478,14 +478,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);