From: Stephen M. Cameron Date: Fri, 21 Feb 2014 22:25:21 +0000 (-0600) Subject: [SCSI] hpsa: Do not zero fields of ioaccel2 command structure twice X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=df03c3f62837e20e936fe705aa480e8bee6bb3ca;p=linux-beck.git [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 --- 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;