scsi: lpfc: Do not abuse UUID APIs and LPFC_COMPRESS_VMID_SIZE
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Aug 2023 15:54:52 +0000 (18:54 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 21 Aug 2023 21:13:57 +0000 (17:13 -0400)
commit19d7102a953900560811498018bb2de4e27ee9d9
treee0e469b1d46efe40b555aaaac6d16b40eab0d53c
parent04aff456af1833c62345a9551958993269eb88b1
scsi: lpfc: Do not abuse UUID APIs and LPFC_COMPRESS_VMID_SIZE

The lpfc_vmid_host_uuid is not defined as uuid_t and its usage is not the
same as for uuid_t operations (like exporting or importing).  Hence replace
call to uuid_is_null() by respective memchr_inv() without abusing casting.

With that, replace LPFC_COMPRESS_VMID_SIZE with plain number and respective
sizeof() to make code robust to changes in the future, if any.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230818155452.875781-1-andriy.shevchenko@linux.intel.com
Reviewed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_els.c