diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 19:24:38 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 20:35:03 +0100 |
| commit | a984eb367c032dbe2577f01238c3d1268526be70 (patch) | |
| tree | 437fef40379b2758b129ccea39df3570fa2d145e /include/arch/x86_64/scsi/fc | |
| parent | 8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff) | |
Clang-tidy fixes
Diffstat (limited to 'include/arch/x86_64/scsi/fc')
| -rw-r--r-- | include/arch/x86_64/scsi/fc/fc_els.h | 3 | ||||
| -rw-r--r-- | include/arch/x86_64/scsi/fc/fc_fs.h | 10 |
2 files changed, 5 insertions, 8 deletions
diff --git a/include/arch/x86_64/scsi/fc/fc_els.h b/include/arch/x86_64/scsi/fc/fc_els.h index 6507344f..945c9468 100644 --- a/include/arch/x86_64/scsi/fc/fc_els.h +++ b/include/arch/x86_64/scsi/fc/fc_els.h @@ -279,8 +279,7 @@ struct fc_tlv_desc { #define FC_TLV_DESC_LENGTH_FROM_SZ(desc) (sizeof(desc) - FC_TLV_DESC_HDR_SZ) /* Macro, used on received payloads, to return the descriptor length */ -#define FC_TLV_DESC_SZ_FROM_LENGTH(tlv) \ - (__be32_to_cpu((tlv)->desc_len) + FC_TLV_DESC_HDR_SZ) +#define FC_TLV_DESC_SZ_FROM_LENGTH(tlv) (__be32_to_cpu((tlv)->desc_len) + FC_TLV_DESC_HDR_SZ) /* * This helper is used to walk descriptors in a descriptor list. diff --git a/include/arch/x86_64/scsi/fc/fc_fs.h b/include/arch/x86_64/scsi/fc/fc_fs.h index 36d2f1fe..3068d5a0 100644 --- a/include/arch/x86_64/scsi/fc/fc_fs.h +++ b/include/arch/x86_64/scsi/fc/fc_fs.h @@ -186,12 +186,10 @@ enum fc_fh_type { * FC_TYPE names initializer. * Please keep this matching the above definitions. */ -#define FC_TYPE_NAMES_INIT \ - { \ - [FC_TYPE_BLS] = "BLS", [FC_TYPE_ELS] = "ELS", \ - [FC_TYPE_IP] = "IP", [FC_TYPE_FCP] = "FCP", \ - [FC_TYPE_CT] = "CT", [FC_TYPE_ILS] = "ILS", \ - [FC_TYPE_NVME] = "NVME", \ +#define FC_TYPE_NAMES_INIT \ + { \ + [FC_TYPE_BLS] = "BLS", [FC_TYPE_ELS] = "ELS", [FC_TYPE_IP] = "IP", [FC_TYPE_FCP] = "FCP", \ + [FC_TYPE_CT] = "CT", [FC_TYPE_ILS] = "ILS", [FC_TYPE_NVME] = "NVME", \ } /* |
