]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] hpsa: Do not zero fields of ioaccel2 command structure twice
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Fri, 21 Feb 2014 22:25:21 +0000 (16:25 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:24 +0000 (10:19 -0700)
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>
drivers/scsi/hpsa.c

index eb23eeacf59299b8198f413d293c363a3dc66d55..9542a4463e7512e65997134a960634ce53ac9340 100644 (file)
@@ -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;