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 c0a1677 commit efc16f0
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 @@ -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);
Expand Down

0 comments on commit efc16f0

Please sign in to comment.