scsi: lpfc: Slight fast-path performance optimizations
authorJames Smart <jsmart2021@gmail.com>
Fri, 18 Oct 2019 21:18:24 +0000 (14:18 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Oct 2019 01:02:05 +0000 (21:02 -0400)
commit22770cbabf6bb77a397d9f11d41f97667dd0caa2
tree61cc7f2ff48f6197e965f6281cd1a929843b9cd6
parentf84f8f93f01feb64fdda8dd6c72d1b7dc24ad11d
scsi: lpfc: Slight fast-path performance optimizations

Slightly rework some error check code paths for better streamlining.

Added compiler unlikely hints to allow slightly better optimization of the
fast-path.

Removed a few pointer checks that were obviously already valid.

Link: https://lore.kernel.org/r/20191018211832.7917-9-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c
drivers/scsi/lpfc/lpfc_scsi.c