From df03c3f62837e20e936fe705aa480e8bee6bb3ca Mon Sep 17 00:00:00 2001 From: "Stephen M. Cameron" Date: Fri, 21 Feb 2014 16:25:21 -0600 Subject: [SCSI] hpsa: Do not zero fields of ioaccel2 command structure twice Structure was already memset to zero at the top of hpsa_scsi_ioaccel2_queue_command Signed-off-by: Stephen M. Cameron Signed-off-by: James Bottomley --- drivers/scsi/hpsa.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/scsi/hpsa.c') diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index eb23eeacf592..9542a4463e75 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -3570,8 +3570,6 @@ static int hpsa_scsi_ioaccel2_queue_command(struct ctlr_info *h, cp->Tag = (c->cmdindex << DIRECT_LOOKUP_SHIFT) | DIRECT_LOOKUP_BIT; memcpy(cp->cdb, cdb, sizeof(cp->cdb)); - memset(cp->cciss_lun, 0, sizeof(cp->cciss_lun)); - cp->cmd_priority_task_attr = 0; /* fill in sg elements */ cp->sg_count = (u8) use_sg; -- cgit v1.2.1