From: FUJITA Tomonori Date: Sat, 1 Mar 2008 06:36:35 +0000 (+0900) Subject: [SCSI] tgt: stop zero'ing scsi_cmnd X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=36802e99894e9757de2441b4f719c05a29495dc5;p=openwrt%2Fstaging%2Fblogic.git [SCSI] tgt: stop zero'ing scsi_cmnd The scsi midlayer allocates scsi_cmnd->sense_buffer dynamically so we can't initialize scsi_cmnd (the midlyaer does for us). Signed-off-by: FUJITA Tomonori Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/scsi_tgt_lib.c b/drivers/scsi/scsi_tgt_lib.c index 3677fbb30b72..b14251483c3b 100644 --- a/drivers/scsi/scsi_tgt_lib.c +++ b/drivers/scsi/scsi_tgt_lib.c @@ -103,7 +103,6 @@ struct scsi_cmnd *scsi_host_get_command(struct Scsi_Host *shost, if (!cmd) goto release_rq; - memset(cmd, 0, sizeof(*cmd)); cmd->sc_data_direction = data_dir; cmd->jiffies_at_alloc = jiffies; cmd->request = rq;