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

Commit e960f5ab authored by James Smart's avatar James Smart Committed by Martin K. Petersen
Browse files

scsi: lpfc: cleanup: Remove excess check on NVME io submit code path



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: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarJames Smart <jsmart2021@gmail.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 0b05e9fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

	/*