diff options
author | Reza Arbab <arbab@linux.ibm.com> | 2019-01-09 09:58:44 -0600 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-01-16 00:46:49 -0600 |
commit | 552cb9e371d82cea05ce5e6a2b8ae033361e2c72 (patch) | |
tree | 3db89bb1c1f88524ed73e43e89c40c6800811c1d /hw | |
parent | aa56d9a2abdbba6a34314f2c70dd183cf2179bab (diff) | |
download | skiboot-552cb9e371d82cea05ce5e6a2b8ae033361e2c72.zip skiboot-552cb9e371d82cea05ce5e6a2b8ae033361e2c72.tar.gz skiboot-552cb9e371d82cea05ce5e6a2b8ae033361e2c72.tar.bz2 |
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')
-rw-r--r-- | hw/npu2.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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; |