mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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: 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>
This commit is contained in:
parent
0b05e9fe1f
commit
e960f5ab40
1 changed files with 1 additions and 1 deletions
|
@ -1190,7 +1190,7 @@ lpfc_nvme_prep_io_cmd(struct lpfc_vport *vport,
|
||||||
union lpfc_wqe128 *wqe = &pwqeq->wqe;
|
union lpfc_wqe128 *wqe = &pwqeq->wqe;
|
||||||
uint32_t req_len;
|
uint32_t req_len;
|
||||||
|
|
||||||
if (!pnode || !NLP_CHK_NODE_ACT(pnode))
|
if (!NLP_CHK_NODE_ACT(pnode))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue