]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Rework lpfc_fdmi_cmd() routine for cleanup and consistency
authorJames Smart <jsmart2021@gmail.com>
Sun, 11 Sep 2022 22:15:01 +0000 (15:15 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 16 Sep 2022 02:18:27 +0000 (22:18 -0400)
commit2649809cd1b432e5623d9841dc69a4b8d26e2365
tree4b2d6b8e9522a1b2aa61856082750c080ead02b3
parentd8cdd33a66dc8cc8d7f83b743bbdcef30a5624c0
scsi: lpfc: Rework lpfc_fdmi_cmd() routine for cleanup and consistency

Switch case logics are reworked so they appear more similar and
consistent. This eliminates compiler errors indicating unaligned pointer
values and packed members.

Added comments to explain previous size offset accumulations.

Link: https://lore.kernel.org/r/20220911221505.117655-10-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_ct.c