scsi: lpfc: cleanup: Remove excess check on NVME io submit code path
authorJames Smart <jsmart2021@gmail.com>
Mon, 28 Jan 2019 19:14:18 +0000 (11:14 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 03:22:42 +0000 (22:22 -0500)
lpfc_nvme_prep_io_cmd() checks for null pnode, but caller
lpfc_nvme_fcp_io_submit() has already ensured it's non-null.

Remove the pnode null check.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c

index b59bf37af881afd964e223f6ac69f8f1173f8d28..d3e955f7089401f016a903bd1ee67a0e20d4e409 100644 (file)
@@ -1190,7 +1190,7 @@ lpfc_nvme_prep_io_cmd(struct lpfc_vport *vport,
        union lpfc_wqe128 *wqe = &pwqeq->wqe;
        uint32_t req_len;
 
-       if (!pnode || !NLP_CHK_NODE_ACT(pnode))
+       if (!NLP_CHK_NODE_ACT(pnode))
                return -EINVAL;
 
        /*