Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df03c3f6 authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by James Bottomley
Browse files

[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: default avatarStephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 316b221a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;