From d06274bdb8ce7f104271cd9138c6793f929f4989 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Wed, 11 Dec 2024 20:36:55 +0100 Subject: [PATCH] Return count when writing --- cpp/devices/scsi_generic.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpp/devices/scsi_generic.cpp b/cpp/devices/scsi_generic.cpp index 81d0f029..1aee6dfb 100644 --- a/cpp/devices/scsi_generic.cpp +++ b/cpp/devices/scsi_generic.cpp @@ -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 buf, bool write, int chunk_size)