scsi: lpfc: remove redundant code
authorFuqian Huang <huangfq.daxian@gmail.com>
Thu, 8 Aug 2019 01:35:25 +0000 (09:35 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:07:50 +0000 (22:07 -0400)
Remove the redundant initialization code.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_bsg.c
drivers/scsi/lpfc/lpfc_sli.c

index c7f66239ca702b6fb75c84d0e038b77d184bf2d9..251504cd575f0bc10442e95bc1c7f4cc9933522a 100644 (file)
@@ -1569,7 +1569,6 @@ lpfc_issue_ct_rsp(struct lpfc_hba *phba, struct bsg_job *job, uint32_t tag,
                "2722 Xmit CT response on exchange x%x Data: x%x x%x x%x\n",
                icmd->ulpContext, icmd->ulpIoTag, tag, phba->link_state);
 
-       ctiocb->iocb_cmpl = NULL;
        ctiocb->iocb_flag |= LPFC_IO_LIBDFC;
        ctiocb->vport = phba->pport;
        ctiocb->context1 = dd_data;
index f9e6a135d6565416ce548f9f573cd2396c7dea2e..156224c14cc7df7d5cb1f7fe36e84ae26f365709 100644 (file)
@@ -17445,7 +17445,6 @@ lpfc_sli4_seq_abort_rsp(struct lpfc_vport *vport,
        icmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi];
        ctiocb->context1 = lpfc_nlp_get(ndlp);
 
-       ctiocb->iocb_cmpl = NULL;
        ctiocb->vport = phba->pport;
        ctiocb->iocb_cmpl = lpfc_sli4_seq_abort_rsp_cmpl;
        ctiocb->sli4_lxritag = NO_XRI;