Thanks to visit codestin.com
Credit goes to github.com

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 <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: [email protected] Cc: Johannes Thumshirn <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
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)