Commit 19d7102
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>1 parent 04aff45 commit 19d7102
2 files changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | 312 | | |
314 | 313 | | |
315 | 314 | | |
| |||
667 | 666 | | |
668 | 667 | | |
669 | 668 | | |
670 | | - | |
| 669 | + | |
671 | 670 | | |
672 | 671 | | |
673 | 672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1331 | 1331 | | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | | - | |
| 1334 | + | |
| 1335 | + | |
1335 | 1336 | | |
1336 | 1337 | | |
1337 | 1338 | | |
| |||
12357 | 12358 | | |
12358 | 12359 | | |
12359 | 12360 | | |
12360 | | - | |
| 12361 | + | |
| 12362 | + | |
12361 | 12363 | | |
12362 | | - | |
| 12364 | + | |
12363 | 12365 | | |
12364 | 12366 | | |
12365 | 12367 | | |
| |||
12369 | 12371 | | |
12370 | 12372 | | |
12371 | 12373 | | |
12372 | | - | |
| 12374 | + | |
12373 | 12375 | | |
12374 | 12376 | | |
12375 | 12377 | | |
12376 | 12378 | | |
12377 | 12379 | | |
12378 | | - | |
| 12380 | + | |
12379 | 12381 | | |
12380 | 12382 | | |
12381 | 12383 | | |
| |||
0 commit comments