[Skiboot] [PATCH 6/9] npu2: Remove unused npu2_dev_nvlink::vendor_cap
Reza Arbab
arbab at linux.ibm.com
Thu Jan 10 02:58:48 AEDT 2019
This variable is never used. Remove it.
Signed-off-by: Reza Arbab <arbab at linux.ibm.com>
---
hw/npu2.c | 1 -
include/npu2.h | 3 ---
2 files changed, 4 deletions(-)
diff --git a/hw/npu2.c b/hw/npu2.c
index 8d5b2f3..b826abd 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -1653,7 +1653,6 @@ static uint32_t npu2_populate_vendor_cap(struct npu2_dev *dev,
/* Capbility list */
PCI_VIRT_CFG_INIT_RO(pvd, prev_cap, 1, start);
PCI_VIRT_CFG_INIT_RO(pvd, start, 1, PCI_CFG_CAP_ID_VENDOR);
- dev->nvlink.vendor_cap = start;
/* Length and version */
PCI_VIRT_CFG_INIT_RO(pvd, start + 2, 1, VENDOR_CAP_LEN);
diff --git a/include/npu2.h b/include/npu2.h
index 8906723..f51a6a2 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -111,9 +111,6 @@ struct npu2_dev_nvlink {
uint8_t link_flags;
- /* Vendor specific capability */
- uint32_t vendor_cap;
-
/* Used to associate the NPU device with GPU PCI devices */
const char *slot_label;
};
--
1.8.3.1
More information about the Skiboot
mailing list