summaryrefslogtreecommitdiffstats
path: root/hw/npu2.c
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.ibm.com>2019-01-09 09:58:44 -0600
committerStewart Smith <stewart@linux.ibm.com>2019-01-16 00:46:49 -0600
commit552cb9e371d82cea05ce5e6a2b8ae033361e2c72 (patch)
tree3db89bb1c1f88524ed73e43e89c40c6800811c1d /hw/npu2.c
parentaa56d9a2abdbba6a34314f2c70dd183cf2179bab (diff)
downloadblackbird-skiboot-552cb9e371d82cea05ce5e6a2b8ae033361e2c72.tar.gz
blackbird-skiboot-552cb9e371d82cea05ce5e6a2b8ae033361e2c72.zip
npu2: Remove dead code from npu2_cfg_write_bar()
We assign pci_cmd, but it never gets used. Remove it. Signed-off-by: Reza Arbab <arbab@linux.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/npu2.c')
-rw-r--r--hw/npu2.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/npu2.c b/hw/npu2.c
index 4e75eeb7..aa8a642e 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -266,10 +266,8 @@ static int64_t npu2_cfg_write_bar(struct npu2_dev *dev,
uint32_t offset, uint32_t size,
uint32_t data)
{
- struct pci_virt_device *pvd = dev->nvlink.pvd;
struct npu2_pcie_bar *bar = (struct npu2_pcie_bar *) pcrf->data;
struct npu2_bar old_bar, *npu2_bar = &bar->npu2_bar;
- uint32_t pci_cmd;
if ((size != 4) ||
(offset != pcrf->start && offset != pcrf->start + 4))
@@ -291,8 +289,6 @@ static int64_t npu2_cfg_write_bar(struct npu2_dev *dev,
npu2_bar->base &= 0x00000000ffffffff;
npu2_bar->base |= ((uint64_t)data << 32);
- PCI_VIRT_CFG_NORMAL_RD(pvd, PCI_CFG_CMD, 4, &pci_cmd);
-
if (NPU2_REG(npu2_bar->reg) == NPU2_GENID_BAR && NPU2DEV_BRICK(dev))
npu2_bar->base -= 0x10000;
OpenPOWER on IntegriCloud