]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Remove unnecessary null ndlp check in lpfc_sli_prep_wqe()
authorJames Smart <jsmart2021@gmail.com>
Tue, 26 Apr 2022 18:13:15 +0000 (11:13 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Apr 2022 02:24:27 +0000 (22:24 -0400)
commitc98024936bdad8add401d045973cc246c9cf56c6
tree8d8560e966902b2fdab450249235d9cb20a82389
parent6775e65c9699c5e3993bc3cf86fd13319c230782
scsi: lpfc: Remove unnecessary null ndlp check in lpfc_sli_prep_wqe()

Smatch had the following warning:

drivers/scsi/lpfc/lpfc_sli.c:22305 lpfc_sli_prep_wqe() error: we previously assumed 'ndlp' could be null (see line 22298)

Remove the unnecessary null check.

Link: https://lore.kernel.org/r/20220426181315.8990-1-jsmart2021@gmail.com
Fixes: f70b5c0741d4 ("scsi: lpfc: Fix field overload in lpfc_iocbq data structure")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c