scsi: xen-scsifront: Remove code that zeroes driver-private command data
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 2 Jun 2017 21:22:03 +0000 (14:22 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 01:02:04 +0000 (21:02 -0400)
Since the SCSI core zeroes driver-private command data, remove
that code from the xen-scsifront driver.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: xen-devel@lists.xenproject.org
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/xen-scsifront.c

index a6a8b60d4902ab018442ab41acb99a9369c63146..36f59a1be7e9a60be61c2b1ba8f7468dfbd8c6c9 100644 (file)
@@ -534,7 +534,6 @@ static int scsifront_queuecommand(struct Scsi_Host *shost,
        int err;
 
        sc->result = 0;
-       memset(shadow, 0, sizeof(*shadow));
 
        shadow->sc  = sc;
        shadow->act = VSCSIIF_ACT_SCSI_CDB;