Skip to content

Commit c2bb873

Browse files
Bart Van Asschemartinkpetersen
authored andcommitted
scsi: virtio_scsi: Remove code that zeroes driver-private command data
Since the SCSI core zeroes driver-private command data, remove that code from the virtio driver. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent c3006a9 commit c2bb873

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/scsi/virtio_scsi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,6 @@ static int virtscsi_queuecommand(struct virtio_scsi *vscsi,
547547
dev_dbg(&sc->device->sdev_gendev,
548548
"cmd %p CDB: %#02x\n", sc, sc->cmnd[0]);
549549

550-
memset(cmd, 0, sizeof(*cmd));
551550
cmd->sc = sc;
552551

553552
BUG_ON(sc->cmd_len > VIRTIO_SCSI_CDB_SIZE);

0 commit comments

Comments
 (0)