Skip to content

Commit f7de50d

Browse files
Bart Van Asschemartinkpetersen
authored andcommitted
scsi: xen-scsifront: Remove code that zeroes driver-private command data
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>
1 parent c2bb873 commit f7de50d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/scsi/xen-scsifront.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ static int scsifront_queuecommand(struct Scsi_Host *shost,
534534
int err;
535535

536536
sc->result = 0;
537-
memset(shadow, 0, sizeof(*shadow));
538537

539538
shadow->sc = sc;
540539
shadow->act = VSCSIIF_ACT_SCSI_CDB;

0 commit comments

Comments
 (0)