scsi: virtio_scsi: Remove code that zeroes driver-private command data
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 2 Jun 2017 21:22:02 +0000 (14:22 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 01:02:03 +0000 (21:02 -0400)
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>
drivers/scsi/virtio_scsi.c

index f8dbfeee6c63f24d26f810d39b36405e03cdbbef..dc2e97c543a57ef49d4b12727047773171de7885 100644 (file)
@@ -547,7 +547,6 @@ static int virtscsi_queuecommand(struct virtio_scsi *vscsi,
        dev_dbg(&sc->device->sdev_gendev,
                "cmd %p CDB: %#02x\n", sc, sc->cmnd[0]);
 
-       memset(cmd, 0, sizeof(*cmd));
        cmd->sc = sc;
 
        BUG_ON(sc->cmd_len > VIRTIO_SCSI_CDB_SIZE);