Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Oct 24, 2024
1 parent 501bb03 commit 112e89b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/devices/tape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 112e89b

Please sign in to comment.