summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2020-02-20 12:28:25 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2020-02-20 12:28:25 +0000
commit3bb647050364eb21549868b2cf35311f7e58d601 (patch)
tree4782846f2e1432811f82cf9d76335aaf6dca14a4
parentdd712f24b7ebd3fb87031dcc089f9198928b2338 (diff)
parentd4990cfc1b590b32a5100dd746688eb2e1b9901f (diff)
downloadillumos-joyent-3bb647050364eb21549868b2cf35311f7e58d601.tar.gz
[illumos-gate merge]
commit d4990cfc1b590b32a5100dd746688eb2e1b9901f 9794 remove bogus casts from PCI_CAP_PUTx and PCI_XCAP_PUTx definitions
-rw-r--r--usr/src/uts/common/sys/pci_cap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/sys/pci_cap.h b/usr/src/uts/common/sys/pci_cap.h
index 9804913241..7154568abd 100644
--- a/usr/src/uts/common/sys/pci_cap.h
+++ b/usr/src/uts/common/sys/pci_cap.h
@@ -46,7 +46,7 @@ int pci_htcap_locate(ddi_acc_handle_t h, uint16_t reg_mask, uint16_t reg_val,
/* Extract the lower 8 bits Extended CFG SPACE */
#define PCI_CAP_ID_MASK 0xff
-#define PCI_CAP_XCFG_SPC(i) ((i) ? (i) | PCI_CAP_XCFG_FLAG : 0)
+#define PCI_CAP_XCFG_SPC(i) ((i) ? (i) | PCI_CAP_XCFG_FLAG : 0)
#ifdef DEBUG
#define PCI_CAP_DBG if (pci_cap_debug) printf
@@ -64,7 +64,7 @@ int pci_htcap_locate(ddi_acc_handle_t h, uint16_t reg_mask, uint16_t reg_val,
*/
typedef enum {
- PCI_CAP_CFGSZ_8 = 0,
+ PCI_CAP_CFGSZ_8 = 0,
PCI_CAP_CFGSZ_16 = 1,
PCI_CAP_CFGSZ_32 = 2
} pci_cap_config_size_t;