Skip to content

Commit

Permalink
Return count when writing
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Dec 11, 2024
1 parent 7bda191 commit d06274b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cpp/devices/scsi_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ int ScsiGeneric::WriteData(cdb_t, data_out_t buf, int, int chunk_size)
}
}

ReadWriteData(span((uint8_t*)buf.data(), buf.size()), true, chunk_size); // NOSONAR Cast required for SG driver API

return remaining_count;
return ReadWriteData(span((uint8_t*)buf.data(), buf.size()), true, chunk_size); // NOSONAR Cast required for SG driver API
}

int ScsiGeneric::ReadWriteData(span<uint8_t> buf, bool write, int chunk_size)
Expand Down

0 comments on commit d06274b

Please sign in to comment.