Received: from eggs.gnu.org ([2001:4830:134:3::10]:43861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acxQd-000061-W1 for qemu-devel@nongnu.org; Mon, 07 Mar 2016 10:50:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acxQd-0006LY-4U for qemu-devel@nongnu.org; Mon, 07 Mar 2016 10:50:39 -0500 Received: from mx0.arrikto.com ([2a01:7e00::f03c:91ff:fe6e:d7ab]:43334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acxQc-0006LT-Tc for qemu-devel@nongnu.org; Mon, 07 Mar 2016 10:50:39 -0500 From: Alex Pyrgiotis Date: Mon, 7 Mar 2016 15:50:22 +0000 Message-Id: <1457365822-22435-1-git-send-email-apyrgio@arrikto.com> Subject: [Qemu-devel] [PATCH] scsi-bus: Remove tape command from scsi_req_xfer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com Remove the RECOVER_BUFFERED_DATA command from the list of commands that are handled by scsi_req_xfer(). Given that this command is tape-specific, it should be handled only by scsi_stream_req_xfer(). Signed-off-by: Alex Pyrgiotis diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index 6dcdbc0..a21752b 100644 --- a/hw/scsi/scsi-bus.c +++ b/hw/scsi/scsi-bus.c @@ -989,7 +989,6 @@ static int scsi_req_xfer(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf) } /* fall through */ case READ_10: - case RECOVER_BUFFERED_DATA: case READ_12: case READ_16: cmd->xfer *= dev->blocksize; -- 2.1.4