Skip to content

Commit c3006a9

Browse files
Bart Van Asschemartinkpetersen
authored andcommitted
scsi: snic: Remove code that zeroes driver-private command data
Since the SCSI core zeroes driver-private command data, remove that code from the snic driver. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Narsimhulu Musini <nmusini@cisco.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Sesidhar Baddela <sebaddel@cisco.com> Cc: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 08f7843 commit c3006a9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/snic/snic_scsi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,6 @@ snic_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc)
359359
SNIC_SCSI_DBG(shost, "sc %p Tag %d (sc %0x) lun %lld in snic_qcmd\n",
360360
sc, snic_cmd_tag(sc), sc->cmnd[0], sc->device->lun);
361361

362-
memset(scsi_cmd_priv(sc), 0, sizeof(struct snic_internal_io_state));
363-
364362
ret = snic_issue_scsi_req(snic, tgt, sc);
365363
if (ret) {
366364
SNIC_HOST_ERR(shost, "Failed to Q, Scsi Req w/ err %d.\n", ret);

0 commit comments

Comments
 (0)