aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2014-02-21 17:25:21 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:19:24 -0400
commitdf03c3f62837e20e936fe705aa480e8bee6bb3ca (patch)
tree923d5062a2062bc85dc791ad68f2d36078a70d35
parent316b221a37802b6abe26067f2c6f2d7bb79069e5 (diff)
[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 <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/hpsa.c2
1 files changed, 0 insertions, 2 deletions
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,
3570 cp->Tag = (c->cmdindex << DIRECT_LOOKUP_SHIFT) | 3570 cp->Tag = (c->cmdindex << DIRECT_LOOKUP_SHIFT) |
3571 DIRECT_LOOKUP_BIT; 3571 DIRECT_LOOKUP_BIT;
3572 memcpy(cp->cdb, cdb, sizeof(cp->cdb)); 3572 memcpy(cp->cdb, cdb, sizeof(cp->cdb));
3573 memset(cp->cciss_lun, 0, sizeof(cp->cciss_lun));
3574 cp->cmd_priority_task_attr = 0;
3575 3573
3576 /* fill in sg elements */ 3574 /* fill in sg elements */
3577 cp->sg_count = (u8) use_sg; 3575 cp->sg_count = (u8) use_sg;